wp/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    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