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



rest_query_var-{$key} › Les Filtres WordPress

Depuis4.7.0
Dépréciéen/a
apply_filters( "rest_query_var-{$key}", $value )
Paramètres:
  • (string) $value The query_var value.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the query_vars used in get_items() for the constructed query.

The dynamic portion of the hook name, $key, refers to the query_var key.





Source

$query_args[ $key ] = apply_filters( "rest_query_var-{$key}", $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores