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
- How to check if user is in back end?
- How to add field for new site-wide option on Network Settings screen?
- How do i know the current post type when on post.php in admin?
- Contact form 7 select box different value-text than content-text in option [closed]
- Create tabs inside Plugins Admin Page [closed]
- Changing the “Plugin Activated” Message Default
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- What are the best practices for updating?
- Modifying a JS file with data from plugin settings
- How to set back-end language per user?
- Correct way to serialize the data of options table?
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Is There a WordPress Hook to Filter the Edit Posts View?
- Changing wp login url without .htaccess
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Where should I use get_option in a plugin
- Inherit plugin settings to new site in Multisite
- Admin plugin, how can I output a different content-type?
- Plugin or mod for wordpress to make content publication SUPER easy
- How can I log a user out of WordPress before the page loads?
- How to tell if plugin has been network activated
- Is there a hook attached to general settings save?
- How to find out if option exists but is empty?
- How do I only load a plugin js on it’s settings pages?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- How to enable Admins to see Plugins
- How to add a help tab to all admin pages – including plugin pages
- Creating button next to “add media” that allows you to choose a single post
- Bad Request (Invalid Hostname) on working server, database problem
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- Environment Specific Options Token
- How do I extract the Alt Text from an image attachment upload via the WordPress Options Framework Plugin?
- How to develop a community feature in the dashboard for multiauthor site
- Network-Wide Plugin Settings Management
- How to create a Page alias in WordPress
- How to fetch serialized data from wordpress options
- Add custom meta box on Post page
- Some Plugin Settings Are Kept After Removal and Reinstall of the Plugin
- Changing widget options via the functions.php when there are no hooks
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Trying to add admin file upload form plugin
- WordPress Plugin Look & Feel
- Is there an action that is called when a post is restored from the trash?
- Get all options saved by another plugin
- What’s the point of using WordPress’s built in admin-ajax.php?
- How can I get a list of plugins and which blogs are using them?
- Filter or action hook to insert content on admin pages before tag
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- Is it ok to call get_option without hooks?
- Enable/Disable WP options programmatically
- Custom options page checkbox will not save, despite working with text
- Settings API – input always updates over validation
- add function to saving change on Options Pages
- WooCommerce “Save Changes” button appears inside custom settings
- clean wp_options table unused rows
- why in my wordpress admin panel the membership option is not showing
- Prepare plugin options for multi-lingual support
- How to edit/delete single row items in a table on my own menu page
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Remove obsolete plugins artifacts from database tables
- Admin Dashboard with Custom Tab for Client
- Moving WordPress from host without FTP?
- How do I remove the entire left nav bar in admin for certain level users?
- Restore a Plugin’s Default Settings
- add action wp_head not working
- How to debug register_setting callback function
- Why is the Settings API is not saving my array of options
- Creating a plugin that will add options. Where should the options menu pages go?
- Making menu link open in new tab?
- Change wording of admin menu item?
- How to handle admin and passwords requests from plugins developers?
- Add get_option to jquery
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- update_user_meta add value on the top on existing value
- Can’t get plugin settings page to save data
- Set of plugins to control the Admin UI
- Default Plugin Settings Not Writing to Database
- Update Option Error: Notice: Undefined index
- How to send little data between admin pages of my plugin?
- How do i save plugin-specific info?
- Set the active Navigation Menu from a plugin
- Serialize data for wp options
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- How can I add an options page for my class based plugin?
- How can I make uploaded images in the editor load with HTTPS?
- What would be the advantages/disadvantages of remote plugin installation?
- problems with wordpress and php version 5.3.3-1
- Why slash is removed after domain?
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- How to add a default value to get_option if it’s used as a variable?