rest_get_route_for_term ( $term )
- (int|WP_Term) term Term ID or term object.
- (string) The route path with a leading slash for the given term, or an empty string if there is not a route.
- Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Gets the REST API route for a term.