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.

Top ↑

Source

File: wp-includes/rest-api.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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