wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_query_var-{$key} › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
› apply_filters( "rest_query_var-{$key}", $value )
Parametry:
  • () value The query_var value.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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