Quickly create, manage and use custom options in your themes!
| Author: | Jacob Guite-St-Pierre (profile at wordpress.org) |
| WordPress version required: | 3.0 |
| WordPress version tested: | 3.3.2 |
| Plugin version: | 1.2 |
| Added to WordPress repository: | 24-01-2012 |
| Last updated: | 14-02-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 20 |
| Rated by: | 1 |
| Plugin URI: | http://jacobgsp.com/wordpress/ |
| Total downloads: | 3 088 |
| Active installs: | 100+ |
![]() Click to start download |
|
Allows you to create custom options that you can easily update via the Options administration panel and also allows you to use mentioned options in your theme using a simple PHP function:
get_custom_option ( $slug [, $default_value, $field ] )
By default, only Administrators can change Custom Options, however you can use the filter gsp_custom_options_capability to change that. For example, if you wish to allow Editors to use Custom Options you can add this to your functions.php file:
function custom_options_capability ($capability) {
return 'publish_pages';
}
add_filter ( 'gsp_custom_options_capability', 'custom_options_capability' );
Very simple, yet efficient.
