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