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



query_vars ›

Desde1.5.0
Obsoleton/a
apply_filters( 'query_vars', $this->public_query_vars )
Parâmetros:
  • (string[]) $public_query_vars The array of whitelisted query variable names.
    Required: Yes
Definido em:
Codex:

Filters the query variables whitelist before processing.

Allows (publicly allowed) query vars to be added, removed, or changed prior to executing the query. Needed to allow custom rewrite rules using your own arguments to work, or any other custom query variables you want to be publicly available.





Fonte

$this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars );