Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_{$this->post_type}_query ›

Desde4.7.0
Obsoleton/a
apply_filters( "rest_{$this->post_type}_query", $args, $request )
Parâmetros: (2)
  • (array) $args Key value array of query var to query value.
    Required: Yes
  • (WP_REST_Request) $request The request used.
    Required: Yes
Links:
    Definido em:
    Codex:

    Filters the query arguments for a request.

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





    Fonte

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