Recursively add additionalProperties = false to all objects in a schema.
WP_REST_Settings_Controller::sanitize_callback
Custom sanitize callback used for all options to allow the use of ‘null’.
WP_REST_Settings_Controller::get_item_schema
Retrieves the site setting schema, conforming to JSON Schema.
rest_pre_update_setting
Filters whether to preempt a setting value update.
Advertisement
WP_REST_Settings_Controller::get_registered_options
Retrieves all of the registered options for the Settings API.
WP_REST_Settings_Controller::update_item
Updates settings for the settings object.
WP_REST_Settings_Controller::prepare_value
Prepares a value for output based off a schema array.
rest_pre_get_setting
Filters the value of a setting recognized by the REST API.
Advertisement
WP_REST_Settings_Controller::get_item
Retrieves the settings.
WP_REST_Settings_Controller::get_item_permissions_check
Checks if a given request has access to read and manage settings.
WP_REST_Settings_Controller::register_routes
Registers the routes for the objects of the controller.
WP_REST_Settings_Controller::__construct
Constructor.
Advertisement
WP_REST_Settings_Controller
Core class used to manage a site’s settings via the REST API.