All Projects → WP-API → live-settings

WP-API / live-settings

Licence: other
Update your settings, live.

Programming Languages

javascript
184084 projects - #8 most used programming language
PHP
23972 projects - #3 most used programming language

Live Settings for WordPress

Update your settings, live, and avoid unnecessary page refreshes.

Installation

  1. Clone this repository, or download as a zip.
  2. Install as a plugin and activate.
  3. That's it!

Using in Plugins

Live Settings automatically attaches to all pages under the Settings menu in the admin. This should work automatically on plugin settings pages as well, however you will need to register your settings:

add_action( 'rest_api_init', __NAMESPACE__ . '\\register_settings' );

function register_settings() {
	register_setting( 'optiongroup', 'my_custom_setting', array(
		'type'         => 'boolean',
		'show_in_rest' => true,
	));
}

Live Settings will attach to your page and automatically discover the settings input fields that match.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].