Filters the REST API route for a post type.
Parameters
$route
string- The route path.
$post_type
WP_Post_Type- The post type object.
Source
return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.