I wrote a tutorial for Incorporating the Settings API in WordPress Themes.
The only real difference for Plugins is that you’ll use add_settings_page() instead of add_theme_page(). The rest should pretty much be the same.
Related Posts:
- move setting data from wordpress api to codestar freamwork
- Custom plugin settings: clicking “save changes” does not display success message
- Settings API – input always updates over validation
- Can’t get plugin settings page to save data
- How can I add an options page for my class based plugin?
- How to get specific setting by settings_fields()?
- Show admin notice on incorrect value on form field
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Update WP option by plugin
- How to save plugin custom settings page fields
- How to make sure settings are not lost when plugin is updated?
- How to save Setting pages data to the database?
- How to save the option’s new values plus old value without overwrite old one
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How do I add a textarea (multirow) option to my WordPress plugin?
- Option page not updating multiple records in settings api
- Validating values using Settings API?
- When to store store plugin options as a single database record?
- Plugin is a widget, but I want to call it in the head, can I?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Socialite WP plugin, unable to obtain API keys from FB
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- Update a core option from plugin settings page
- WordPress error: Options page Setting_ not found in the allowed options list
- Prevent plugin from intruding on wp-json posts api
- Getting a Page via its post-name using WP REST API v2 and Postman
- update_option_{$option} not showing old value
- Updating options into the wp database performance
- Can deactivating a plugin sometimes “reset” settings within that plugin?
- Allowed memory size exhausted problem
- Change the style of h1, h2, only in post entry
- Plugin getting Cannot modify header information errors
- How to add options to the plugin page?
- Saving widget options from class method
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Default plugin config to override wp_options?
- How to set category correctly for a custom post created by a remote API call?
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- get_option / wp_localize_script Not Working in OOP Plug In
- Custom API plugin to execute 3rd party API to retrieve data
- OceanWP settings are missing from Add New Post [closed]
- Change in one place the data about the company, which are placed on several pages
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Plugin scheduled event not working
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- How to get a list of all the available plugins names
- How can ι create my own (custom) WordPress table/list?
- How to reinstate previously saved option?
- How (or where) do I get wordpress plugin update download link?
- Adding option values as an array using a multi selectable select box
- Store plugin page content in wp_options?
- Can i use init hook for API purpose?
- How to change php variable value using wp setting api
- Settings API Message Error is global
- Every time I save my plugin options it erases another plugin options
- 500 error when updating plugin option
- Changing plugin options from theme functions file?
- Adding a theme option to the admin that lets me turn on/off a javascript file
- How to make a textarea accept javascript in my settings apge?
- How do you add a settings page to another menu?
- Localise settings section headline
- Need to add/remove group of options and display them as rows
- Multisite Plugin – Access options (wp_options) on child sites
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- How to get values from network settings panel?
- How to add a custom form to a plugin’s setting page
- update_option creates an option, which empties on a blog reload
- Using call_user_func() within add_settings_section() within a Class
- What is the most efficient way of adding additional functionaliy for admin only
- Color Picker UI in admin is not correct
- Editable select options in quick edit OR in plugin settings
- wp_options not returning value for logged out users?
- How to convert Currency from USD to other IP Based currency in Php function
- Save log for imports in WordPress database – options-table, custom post type or other place?
- How do I display PHP file contents on front end of WordPress?
- Managing and deleting transients with dynamically generated transient names
- how to show new field if option selected?
- Push Contact form 7 variable to front end after submission
- Call require_once form admin page with checkbox
- Problem with MEMCACHE and Redis with wp_options
- update_option_{$option} not working (do function after options are saved)
- Creating an array from form inputs before it is posted to the options database
- Escape commas in REST API
- Ability to change homepage on WordPress using API
- Changing the CSS with a plugin
- Do i need to use a plugin for third party api integration?
- Help to create the best plugin settings!
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- Load google font script based on optgroup label selected
- is it possible to fetch data from a remote api while admin is writing a new post?
- WordPress output data to another website and pull data
- One time call to external API in widget
- save short-code in my custom plugin settings problem missed something
- wp_remote_post To external API multiple values with the same key
- How do I render content from a wp_editor in a plugin setting field?
- How to get data from a private API and add it to wordpress pages