equal
deleted
inserted
replaced
25 $this->namespace = 'wp/v2'; |
25 $this->namespace = 'wp/v2'; |
26 $this->rest_base = 'settings'; |
26 $this->rest_base = 'settings'; |
27 } |
27 } |
28 |
28 |
29 /** |
29 /** |
30 * Registers the routes for the objects of the controller. |
30 * Registers the routes for the site's settings. |
31 * |
31 * |
32 * @since 4.7.0 |
32 * @since 4.7.0 |
33 * |
33 * |
34 * @see register_rest_route() |
34 * @see register_rest_route() |
35 */ |
35 */ |
152 if ( ! array_key_exists( $name, $params ) ) { |
152 if ( ! array_key_exists( $name, $params ) ) { |
153 continue; |
153 continue; |
154 } |
154 } |
155 |
155 |
156 /** |
156 /** |
157 * Filters whether to preempt a setting value update. |
157 * Filters whether to preempt a setting value update via the REST API. |
158 * |
158 * |
159 * Allows hijacking the setting update logic and overriding the built-in behavior by |
159 * Allows hijacking the setting update logic and overriding the built-in behavior by |
160 * returning true. |
160 * returning true. |
161 * |
161 * |
162 * @since 4.7.0 |
162 * @since 4.7.0 |