A WordPress-centric search engine for devs and theme authors



rest_query_var-{$key} ›

Since4.7.0
Deprecatedn/a
apply_filters( "rest_query_var-{$key}", $value )
Parameters:
  • (string) $value The query_var value.
    Required: Yes
Defined at:
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 );