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



rest_route_for_post › WordPress Filter Hooks

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

Filters the REST API route for a post.





Source

return apply_filters( 'rest_route_for_post', $route, $post );