Filters whether to preempt a setting value update via the REST API.
$resultbool$namestring$valuemixed$argsarraywp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php:169WP_REST_Settings_Controller::update_item() * @param bool $result Whether to override the default behavior for updating the * value of a setting. * @param string $name Setting name (as shown in REST API responses). * @param mixed $value Updated setting value. * @param array $args Arguments passed to register_setting() for this setting. */ $updated = apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args ); if ( $updated ) { continue; } /*Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.