wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_request_parameter_order › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_request_parameter_order', $order, $this )
Parameters: (2)
  • (string[]) $order Array of types to check, in order of priority.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
Defined at:
Codex:

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.





Source

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