Because your options are stored in one overarching serialized option, you have to make a function like below to retrieve the right option.
<?php
function get_contact_details_setting( $option ) {
$contact_details_settings = unserialize( get_option( 'contact_details_settings' ) );
return $contact_details_settings[$option];
}
?>
Related Posts:
- 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
- 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
- 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
- How to retrieve the options from this options page?
- 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?
- 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?
- Multiple checkbox doesn’t work in wordpress settings api
- 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
- 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
- Add multiple custom fields to the general settings page
- Are all options loaded to memory on each request?
- How does object caching work?
- How to use checkbox and radio button in options page?
- Is get_option function cached?
- Using widget options ‘outside’ the widget
- How to load WordPress on non WP page?
- Options for CDN with WordPress Including Supporting Plugins?
- Option to set static front page disappeared from admin reading settings
- WordPress Settings API, Implementing Tabs On Custom Menu Page
- How to set up default values for a plugin?
- Define WordPress image size in img tag
- Editor role not saving settings page for custom post type
- 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
- update_option not working in stand-alone PHP script
- Clone plugins (and settings) to new installation?
- Allow spiders to crawl my site (selectable option in wp)
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- WordPress setting with select – where is my mistake?
- Changing the language in Site Language does nothing
- Run function on settings save
- Echoing a variable inside a function
- 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?
- Different Front page for Mobile
- Flush rewrite rules on option update with Settings API
- Is there an optimized, WordPress-y way to not call a `get_option` twice?
- Save and user submitted data from a form and display them in the wp backend
- get_option and list of options
- Verify Values Using Settings API
- Create a counter variable in wp_options that increments when submit button is pressed
- Getting all the settings for a plugin
- Options page: values don’t show up in dashboard
- Sharing Buttons not Working – Sharing Settings [closed]
- Settings API no update status? (refering to the yellow bar when you save settings)
- How to save Setting pages data to the database?
- How to change color of a word in text after WP update
- Option value not get saved in the database
- Encoding matter – ? instead of € after settings field callback
- How to save the option’s new values plus old value without overwrite old one
- 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 create multiple Top Level Admin Menu Pages To submit data to the options table?
- Add_menu_page and saving settings
- Option does not save or update upon page refresh