rest_route_for_taxonomy_items WordPress Filter Hook
The rest_route_for_taxonomy_items hook is used to register a new route for retrieving taxonomy items. This hook is called when the WP_REST_Server class is instantiated.
apply_filters( 'rest_route_for_taxonomy_items', string $route , WP_Taxonomy $taxonomy ) #
Filters the REST API route for a taxonomy.
Parameters
- $route
(string)The route path.
- $taxonomy
(WP_Taxonomy)The taxonomy object.
Source
File: wp-includes/rest-api.php
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |