apply_filters( “rest_query_var-{$key}”, string $value )

In this article

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

$valuestring
The query_var value.

Source

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.