Add a new settings section for the reset button that is called on every tab. In the callback function for the field create the reset button. I would include the submit button here too to get both side by side.
In the validation function delete the whole option if the reset button is present in the request.
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
- 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
- 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
- Performance with autoload and the options table
- Where to store plugin settings fields
- Add on the fly tabs to plugin options
- What’s the best method for emptying an option created with the Settings API?
- Settings API – easiest way of validating checkboxes?
- add static page to reading settings for custom post type
- Fallback when Transient API fails
- Add_settings_field() parameterizing callback?
- Set a Default Value for an Option?
- How to change the file upload directory on version 3.5?
- Settings API – input always updates over validation
- Can I use the different settings sections over different pages using the save options group?
- Access general settings trough wordpress files
- get_option & update_option for multiple input fields with same name
- Can we allow users to choose front page from theme options?
- How to display usermeta on front end of site
- Is there a capability for managing plugin options?
- How to create a drop down list with pages to a themes options page?
- Classes and functions involved in serialization and unserialization
- why is unregister_setting() undefined?
- Settings API not saving values to database
- Set $options reference
- Saving plugin settings – ERROR: options page not found
- Changing max number of blog posts per page doesn’t work
- Block properties, attributes and settings
- 403 error on submit at the plugin options page
- WordPress get_option() on AJAX issue
- Tabbed theme options query about add_settings_section callback function
- How can you store your option at the permalink settings page?
- Uploading and inserting an image using a custom option panel like in the Twenty Ten theme?
- How to make sure settings are not lost when plugin is updated?
- What is the XSSAttack option_name for in the options table?
- WP Optimization: Overwriting options to autoload=yes for often used options?
- WordPress Settings API Overrides My Previous Value
- how to compare update_option() after it saves to database?
- Some entries delete_option doesn’t work
- Plugin setting page – update_option problem
- Use delete_option in action link
- Option page not updating multiple records in settings api
- Trying to change settings -> firefox downloads options.php instead
- Validating values using Settings API?
- Share content between two different sites in same domain
- wp_allow_comments checking for blacklisted words effectively
- Options don’t save, validation callback not executed
- Creating your own options-general.php page
- Fatal error: Call to undefined function get_option()
- illegal offset in option add
- Settings API not Saving to Database or Display
- Admin Message after Plugin Option Updated
- How to add custom settings to the menu of custom post types?