WordPress开发者和主题制作者的搜索引擎



rest_request_parameter_order ›

Since4.4.0
已弃用n/a
apply_filters( 'rest_request_parameter_order', $order, $this )
参数: (3)
  • (array) $order { An array of types to check, in order of priority.
    Required: Yes
  • (string) $type The type to check. }
    Required: Yes
  • (WP_REST_Request) $this The request object.
    Required: Yes
定义在:
文档:

Filters the parameter order.

The order affects which parameters are checked when using get_param() and family. This acts similarly to PHP's request_order setting.





源码

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