apply_filters( ‘rest_request_parameter_order’, string[] $order, WP_REST_Request $request )

In this article

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

return apply_filters( 'rest_request_parameter_order', $order, $this );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.