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



rest_route_for_post_type_items › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'rest_route_for_post_type_items', $route, $post_type )
Parameters: (2)
  • (string) $route The route path.
    Required: Yes
  • (WP_Post_Type) $post_type The post type object.
    Required: Yes
Defined at:
Codex:

Filters the REST API route for a post type.





Source

return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );