On this page
apply_filters( 'rest_request_parameter_order', string[] $order, WP_REST_Request $request )
Filters the parameter priority order for a REST API request.
Description
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.
Parameters
$orderstring[]-
Array of types to check, in order of priority.
$requestWP_REST_Request-
The request object.
Source
File: wp-includes/rest-api/class-wp-rest-request.php. View all references
return apply_filters( 'rest_request_parameter_order', $order, $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Request::get_parameter_order() wp-includes/rest-api/class-wp-rest-request.php | Retrieves the parameter priority order. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_request_parameter_order