wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_route_for_term › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'rest_route_for_term', $route, $term )
Parameters: (2)
  • (string) $route The route path.
    Required: Yes
  • (WP_Term) $term The term object.
    Required: Yes
Defined at:
Codex:

Filters the REST API route for a term.





Source

return apply_filters( 'rest_route_for_term', $route, $term );