apply_filters( ‘rest_route_for_post_type_items’, string $route, WP_Post_Type $post_type )

In this article

Filters the REST API route for a post type.

Parameters

$routestring
The route path.
$post_typeWP_Post_Type
The post type object.

Source

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

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.