apply_filters( 'rest_route_for_post', string $route , WP_Post $post )
Filters the REST API route for a post.
Parameters
- $route
-
The route path.
- $post
-
The post object.
Source
File: wp-includes/rest-api.php
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |