Description
Filters the REST API route for a post type.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api.php | 3183 |
Parameters
Type | Name | Description |
---|---|---|
string | $route | The route path. |
WP_Post_Type | $post_type | The post type object. |
PHP Doc
/**
* Filters the REST API route for a post type.
*
* @since 5.9.0
*
* @param string $route The route path.
* @param WP_Post_Type $post_type The post type object.
*/