A WordPress-centric search engine for devs and theme authors



rest_{$this->post_type}_query ›

Since4.7.0
Deprecatedn/a
apply_filters( "rest_{$this->post_type}_query", $args, $request )
Parameters: (2)
  • (array) $args Key value array of query var to query value.
    Required: Yes
  • (WP_REST_Request) $request The request used.
    Required: Yes
Defined at:
Codex:

Filters the query arguments for a request.

Enables adding extra arguments or setting defaults for a post collection request.





Source

$args       = apply_filters( "rest_{$this->post_type}_query", $args, $request );