Filters the query_vars used in get_items() for the constructed query.
Description
The dynamic portion of the hook name, $key
, refers to the query_var key.
Parameters
$value
string- The query_var value.
Source
$query_args[ $key ] = apply_filters( "rest_query_var-{$key}", $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.