
Quickly create, manage and use custom options in your themes!
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.
custom-options to the /wp-content/plugins/ directoryPlugins menu in WordPressOptions menu in WordPressget_custom_option( $slug, $default_value )echo if you want to output itFrom a user’s point of view, nothing. However, from a developer’s point of view, this new plugin is somewhat cleaner. Options are now saved in a serialized array in the WordPress options table.
No.
gsp_custom_options_capability to customize what capability has access to Custom Options.value and if set to label will display the title of label of the custom option. As requested by Jam Tin on the forums.