WordPress at a glance
filter is not described

rest_pre_update_setting filter-hook . WP 4.7.0

Filters whether to preempt a setting value update.

Allows hijacking the setting update logic and overriding the built-in behavior by returning true.


add_filter( 'rest_pre_update_setting', 'filter_function_name_9559', 10, 4 );
function filter_function_name_9559( $result, $name, $value, $args ){
	// filter...

	return $result;
Whether to override the default behavior for updating the value of a setting.
Setting name (as shown in REST API responses).
Updated setting value.
Arguments passed to register_setting() for this setting.


Since 4.7.0 Introduced.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php 170
$updated = apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args );

Where in WP core the hook is used WordPress

Usage not found.