apply_filters( 'rest_route_for_post_type_items', string $route , WP_Post_Type $post_type )
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
File: wp-includes/rest-api.php
.
View all references
return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |