rest_pre_update_setting

rest_pre_update_setting

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_pre_update_setting') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php line 169
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    * @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;
    }
     
    /*

See this hook used in plugins: