Core Function
View Source on Trac ↗ rest_get_route_for_taxonomy_items()
rest_get_route_for_taxonomy_items( mixed $taxonomy ) Gets the REST API route for a taxonomy.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $taxonomy string | Name of taxonomy. Required |
Return Value
(string)
The route path with a leading slash for the given taxonomy.
Function Information
Since Version
5.9.0
Source File
wp-includes/rest-api.php
Advertisement