wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_query_var-{$key} › WordPress Filter Hooks

Da4.7.0
Deprecaton/a
apply_filters( "rest_query_var-{$key}", $value )
Parametri:
  • (string) $value The query_var value.
    Richiesto:
Definito a:
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.





Sorgenti

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