apply_filters( ‘rest_route_for_post’, string $route, WP_Post $post )

In this article

Filters the REST API route for a post.

Parameters

$routestring
The route path.
$postWP_Post
The post object.

Source

return apply_filters( 'rest_route_for_post', $route, $post );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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