Filter hook 'rest_request_parameter_order'
in WP Core File wp-includes/rest-api/class-wp-rest-request.php at line 385
Description
Filters the parameter priority order for a REST API request. The order affects which parameters are checked when using WP_REST_Request::get_param() and family. This acts similarly to PHP's `request_order` setting.
Occurrences
Filename |
Line Number |
wp-includes/rest-api/class-wp-rest-request.php |
385 |
Parameters
Type |
Name |
Description |
string[] |
$order |
Array of types to check, in order of priority. |
WP_REST_Request |
$request |
The request object. |
PHP Doc
/**
* Filters the parameter priority order for a REST API request.
*
* The order affects which parameters are checked when using WP_REST_Request::get_param()
* and family. This acts similarly to PHP's `request_order` setting.
*
* @since 4.4.0
*
* @param string[] $order Array of types to check, in order of priority.
* @param WP_REST_Request $request The request object.
*/