if you look at the do_settings_sections function more specifically the line 1164 where the callback function is being executed :
call_user_func($section['callback'], $section);
you can see that the $section array is being passed to the callback function, so you can identify the callback by the $section['id']
hope this make since.
Update
here is an example, if your add_settings_section callback for all sections was named oenology_hooks_section_callback
then you can identify it like this:
function oenology_hooks_section_callback($section_passed){
if ($section_passed['id'] == 'whatever_section_id'){
//do stuff
}
if ($section_passed['id'] == 'whatever_section_id_number2'){
//do other stuff
}
}
and by do stuff i mean do whatever you want to do with that section callback.
Related Posts:
- Help to create the best plugin settings!
- How to pass arguments from add_settings_field() to the callback function?
- Difference between Option_Group and Option_Name in Register_Settings
- Plugin options will not save in database
- 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?)
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- 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
- How to create a drop down list with pages to a themes options page?
- 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
- WordPress Settings API settings not saving for some users
- How to add a Reset to Defaults button with Settings API?
- PHP class to add pages and fields in admin panel
- Call require_once form admin page with checkbox
- 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?
- 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
- move setting data from wordpress api to codestar freamwork
- Efficient way of saving plugin options
- Why isn’t get_option array contents displaying?
- Settings API erases itself?
- Possible to add another setting to ‘Front page displays’ setting for Custom Post Type
- Proper use of option_page_capability_{$page_name}
- How to save WordPress Options as an array?
- How to verify this checkbox is checked?
- What to use , set_transient, set_option or file system? [closed]
- Extend plugin options page
- display all posts in wordpress admin crashing after 999 screen option
- Putting my site live
- Can’t get plugin settings page to save data
- Add an option to a Child theme of Twenty Eleven
- How can I add an options page for my class based plugin?
- How to store a value on WP_option table
- Changing the language in Site Language does nothing
- Custom blog settings
- wp_usermeta wp_usersettings
- How to get specific setting by settings_fields()?
- How to set wp_editor to be email friendly?
- Whitelisting items from custom options page
- Work flow for multiple developers
- i changed my wordpress address url in SETTINGS – GENRERAL – wordpress address site url. cannot login anymore
- Update problem with update_option() in combination with register_setting()
- Functions to edit wp-config.php [duplicate]
- Show the submitted values in the form when validation fails
- Transients API conditional
- API for wp menu hacks
- Is there any other place – besides a theme, a plugin, or a mu-plugin – that an option page might conceivably be used?
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Issue on Checkbox with Custom Option Page
- Which Hook can I use when creating unique post but not update/save/delete
- Settings API: Setting default option via ‘get_option’ fails
- How to use update_option() without replacing/losing the old value?
- Character \ appearing before ‘ after saving a settings page
- get_option() and update_option() in a transaction (for an autoincrement value)
- display category name based on its equivalent id
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- add image in dropdown select
- WordPress options text format
- Caching of SQL queries
- Custom general settings (textarea field) don’t output HTML correctly
- Using get_option() for check box field