Skip to content

samargulies/selectively-disable-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

=== Selectively Disable Options ===

Contributors: Sam Margulies
Tags:
Requires at least: 3.0
Tested up to: 3.1
Stable tag: 0.1
License: GPLv2 or later

Remove settings that you do not want users to changes. Useful for Wordpress Multisite.

== Description ==

This plugin has no UI, but will give you the option to hook into the `selectively_disabled_options` function. For example, to force the week to start on Sunday and the site to be private, try:
`
function my_disabled_options( $options ) {
	$options['start_of_week'] = '0';
	$options['blog-norobots'] = '0';
	$options['comment_moderation'] = '1';
	return $options;
}
add_filter('selectively_disabled_options', 'my_disabled_options');
`
For a list of options visit the WordPress (options reference)[http://codex.wordpress.org/Option_Reference].

== Installation ==

You can either install it automatically from the WordPress admin, or do it manually:

1. Unzip the archive and put the 'selectively-disable-options' folder into your plugins folder (/wp-content/plugins/).
2. Activate the plugin from the Plugins menu.


== Changelog ==

= 0.1 =
Initial version

About

Wordpress plugin to remove settings that you do not want users to changes. Useful for Wordpress Multisite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages