wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



query_vars › Les Filtres WordPress

Depuis1.5.0
Dépréciéen/a
apply_filters( 'query_vars', $this->public_query_vars )
Paramètres:
  • (string[]) $public_query_vars The array of allowed query variable names.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the query variables allowed 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.





Source

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