It looks like your checkbox state is saved in $options['afi_checkbox_field_0']
. You can check this setting anywhere using the following code:
$options = get_option( 'afi_settings' );
if ( ! empty( $options['afi_checkbox_field_0'] ) ) {
// Checkbox checked
} else {
// Not checked
}
Related Posts:
- Custom plugin settings: clicking “save changes” does not display success message
- How to set CORS header?
- Plugin getting Cannot modify header information errors
- What is the most efficient way of adding additional functionaliy for admin only
- Echo custom admin field into a is_single()
- Best collection of code for your 'functions.php' file [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- ‘Global’ settings page for multisite plugin
- Changing the “Plugin Activated” Message Default
- Modifying a JS file with data from plugin settings
- Changing wp login url without .htaccess
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How can I log a user out of WordPress before the page loads?
- Is there a hook attached to general settings save?
- How to find out if option exists but is empty?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Creating button next to “add media” that allows you to choose a single post
- Bad Request (Invalid Hostname) on working server, database problem
- Add custom meta box on Post page
- Is there an action that is called when a post is restored from the trash?
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- Custom options page checkbox will not save, despite working with text
- WooCommerce “Save Changes” button appears inside custom settings
- why in my wordpress admin panel the membership option is not showing
- Remove obsolete plugins artifacts from database tables
- Admin Dashboard with Custom Tab for Client
- Moving WordPress from host without FTP?
- How to debug register_setting callback function
- Why is the Settings API is not saving my array of options
- Making menu link open in new tab?
- Add get_option to jquery
- wordpress reusable content blocks
- Can’t get plugin settings page to save data
- How to send little data between admin pages of my plugin?
- How do i save plugin-specific info?
- How can I add an options page for my class based plugin?
- problems with wordpress and php version 5.3.3-1
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- Editing admin pages in WordPress [closed]
- Hook to plugins admin settings
- Create mobile navigation header with settings integration
- See which user installed a plugin?
- Edit default comments page in WP Admin
- Globally register styles but enqueue them selectively
- Admin Panel pagination link styles
- Admin Theme customization
- Display update notification messages like ‘What’s New’
- How to get specific setting by settings_fields()?
- Add Plugin options as subpage to Theme options page
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- wp_editor content in plugin options page
- How to change the name of the “edit my profile” link in the WordPress admin backend
- How to create an option page for this simple plugin
- Update a core option from plugin settings page
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Updating options into the wp database performance
- Change the style of h1, h2, only in post entry
- Simply poll & Events Calendar plugins clashing
- Default plugin config to override wp_options?
- How to see which sites use my installed plugins (wordpress multisite)
- get_option / wp_localize_script Not Working in OOP Plug In
- How (or where) do I get wordpress plugin update download link?
- Adding option values as an array using a multi selectable select box
- Every time I save my plugin options it erases another plugin options
- Changing plugin options from theme functions file?
- Equivalent of admin.php for public pages
- Remove specific administrator’s capability
- problem with register_activation_hook in plugin
- Multisite Plugin – Access options (wp_options) on child sites
- Ajax request sends url rather than data
- How to save Setting pages data to the database?
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Creating an array from form inputs before it is posted to the options database
- Can I create a separate admin section for my plugin?
- Load google font script based on optgroup label selected
- save short-code in my custom plugin settings problem missed something
- Plugin Options Page and Subpage
- save multi-select input using update_option for plugin
- How to save the option’s new values plus old value without overwrite old one
- Protect WordPress option value
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How to detect if i am on plugin’s settings page
- How to store multiple instances of the plugin’s options for various shortcodes
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- Add_Meta_box to custom page (formidable edit post)
- Register setting on plugin activation
- Plugin option for input box validation
- Options page textarea to populate custom post select field
- get_option return incorrect values
- Embedding code snippets in posts with indentation
- Is saving multiple options or saving multiple items in one option better?
- Saving an array to get_options
- ‘all’ hook and get_option issue
- How to find an option in the database?
- Building a simple “settings” plugin to change textstrings on the home page
- Adding hero images to blog posts
- Frontpage Admin Bar Disappeared
- What is the recommended way to be notified of security updates to my plugins? [closed]
- wp_options Table keeps growing
- Display Any Field fromAdmin Panel in Frontend via Shortcode?