On this page
apply_filters( 'rest_route_for_taxonomy_items', string $route, WP_Taxonomy $taxonomy )
Filters the REST API route for a taxonomy.
Parameters
$routestring-
The route path.
$taxonomyWP_Taxonomy-
The taxonomy object.
Source
File: wp-includes/rest-api.php. View all references
return apply_filters( 'rest_route_for_taxonomy_items', $route, $taxonomy );
Related
Used By
| Used By | Description |
|---|---|
| rest_get_route_for_taxonomy_items() wp-includes/rest-api.php | Gets the REST API route for a taxonomy. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_route_for_taxonomy_items