Your options are saved under a single key my_option_name
, so you would access the individual options like:
$my_options = get_option( 'my_option_name' );
echo $my_options['title'];
echo $my_options['id_number'];
Related Posts:
- Multiple checkbox doesn’t work in wordpress settings api
- How to pass arguments from add_settings_field() to the callback function?
- How to pass variable to add_settings_section() callback?
- Difference between Option_Group and Option_Name in Register_Settings
- Settings API – creating reusable form elements?
- Settings API – changing add_settings_field() output?
- register_setting() vs add_option()
- Settings API – save an array of options as one setting (array_push?)
- Setting ‘autoload’ to ‘no’ with Settings API
- How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
- Serialized settings in rest api
- Can’t output do_settings_sections . Can’t understand why
- Settings API – how to update multiple options manually?
- Single callback with multiple setting fields
- Settings API – how to update options manually?
- how can I detect that option value has changed?
- How to display some settings for super admin user only using Settings API
- Performance of several get_option() calls
- Settings API – input always updates over validation
- Is there a limit to the number of options you can store in one settings field of wp_options?
- Settings API get_option best practices
- Custom theme options Radio inputs not saving
- Settings API: Change position of custom setting field
- Tab from Settings API resetting all options with INSERT INTO [closed]
- Getting settings saved two times in settings page with tab
- get_option array value defaults and best practices
- WordPress setting with select – where is my mistake?
- The Settings API – What is the purpose of default value in register_setting?
- settings_fields doesn’t appear to be running
- Settings API – Separating PHP and HTML
- Two settings_fields in one form
- Settings API validation callback
- How to save custom settings api fields with custom section fuction
- Add description to custom plugin setting
- Settings API and ‘type’ => ‘font’
- ‘delete_option()’ only deleting the value, not the key/value pair
- How to add a Reset to Defaults button with Settings API?
- Save Plugin Options as Array
- Retrieve my custom settings in the settings/ API endpoint
- Is it possible to have a global parameter page which allows to configure other plugins in the same place?
- Is there a standard technique or API for getting the site header image?
- Help to create the best plugin settings!
- How to save Checkbox-Options in Plugin Options Page
- Problem with checkbox in Settings API
- Options saved and called in wrong order
- User specific settings, limited by role
- Access saved Options / Settings
- Dynamically Update Key in Associative Array When Saving Settings
- Incorporating the Settings API in WordPress Themes – by Chip Bennet
- How to add options for Pages?
- options validator input is false?
- Best place to store company address
- Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]
- change backend header options
- Are all options loaded to memory on each request?
- Is get_option function cached?
- Using widget options ‘outside’ the widget
- How to load WordPress on non WP page?
- How to set up default values for a plugin?
- Plugin options autoloading
- Define WordPress image size in img tag
- get_option() is not working even db contains the corresponding option_name and option_value
- Why won’t register_setting() create a setting?
- Cannot update my options using wp_ajax
- Which WordPress option stores the current active theme?
- update_option not working in stand-alone PHP script
- Allow spiders to crawl my site (selectable option in wp)
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- Custom delete option button in plugin settings
- Changing the language in Site Language does nothing
- Echoing a variable inside a function
- Add Plugin options as subpage to Theme options page
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- update object options on option form
- How to use a newly registered setting with a checkbox and the default value ‘true’
- help using get_option
- How to check False booleans when using get_option?
- How to save user meta on custom admin page
- Why aren’t these WordPress options being saved to the database correctly?
- Gathering and logging data from a plugin: how to do it without race conditions?
- update_option_$option action not working as expected
- not getting API setting saved confirmation message after update on option page
- How to save plugin custom settings page fields
- Assigning a Setting to a Variable and Using it in an if Statement
- Getting all the settings for a plugin
- WordPress get_option() on AJAX issue
- Theme Option select values
- wp_options not returning value for logged out users?
- Option value not get saved in the database
- How to load WordPress on non WP page?
- Whats the best practise on how to store json data from a custom settings page?
- How do I add a textarea (multirow) option to my WordPress plugin?
- Repeatable option fields not saving
- Settings API retrieving options database information alongside with user information?
- How do I build a settings panel under the plugin
- Add_menu_page and saving settings
- Settings API – Checkboxes validation in a menu with multiple subpages
- Option does not save or update upon page refresh
- Admin Message after Plugin Option Updated
- How to add custom settings to the menu of custom post types?