Plugin info

Total downloads: 3,088
Active installs: 100
Total reviews: 1
Average rating: 1
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 2/14/2012 (5070 days ago)
Added to WordPress: 1/24/2012 (13 years old)
Minimum WordPress version: 3.0
Tested up to WordPress version: 3.3.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5070 days ago • 1 reviews

22/100

Is Custom Options abandoned?

Possibly abandoned (last update 5070 days ago).

Compatibility

Requires WordPress: 3.0
Tested up to: 3.3.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

CMB2
Rating 5.0/5 (91 reviews)Active installs 300,000
OptionTree
Rating 4.7/5 (105 reviews)Active installs 60,000
Custom Global Variables
Rating 5.0/5 (10 reviews)Active installs 6,000
ThemeKit For WordPress
Rating 0.0/5 (0 reviews)Active installs 800
Admin Options Pages
Rating 5.0/5 (9 reviews)Active installs 600
CFS Options Screens
Rating 5.0/5 (2 reviews)Active installs 400

Description

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.

Installation

  1. Upload the folder custom-options to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Update the plugin through the Options menu in WordPress
  4. Use Custom Options in your theme through the PHP function get_custom_option( $slug, $default_value )
  5. Don’t forget to precede the function by an echo if you want to output it

Frequently Asked Questions

What’s the difference between Custom Options and your old plugin Custom Configs/Settings?

From 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.

Is Custom Options backward compatible with Custom Configs/Settings?

No.

Review feed

No reviews available

Screenshots

  1. Administration view

    Administration view

Changelog

1.2

  • Added the filter gsp_custom_options_capability to customize what capability has access to Custom Options.

1.1

  • Added the field parameter. The function can now receive a new optional parameter: $field which defaults to value and if set to label will display the title of label of the custom option. As requested by Jam Tin on the forums.

1.0

  • First stable version