Filters get_terms() arguments when querying terms via the REST API.
The dynamic portion of the hook name, $this->taxonomy, refers to the taxonomy slug.
Possible hook names include:
rest_category_queryrest_post_tag_queryEnables adding extra arguments or setting defaults for a terms collection request.
$prepared_argsarray
$requestWP_REST_Request
$prepared_args = apply_filters( "rest_{$this->taxonomy}_query", $prepared_args, $request );
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_this-taxonomy_query