Uses
| Uses | Description | 
|---|---|
| wp-includes/rest-api.php: rest_get_route_for_post() | Gets the REST API route for a post. | 
| wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. | 
This method has been deprecated. Use rest_get_route_for_post() instead.
Attempts to detect the route to access a single item.
(WP_Post) (Required) Post object.
(string) REST route relative to the REST base URI, or empty string if unknown.
File: wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
protected function detect_rest_item_route( $post ) {
		_deprecated_function( __METHOD__, '5.5.0', 'rest_get_route_for_post()' );
		return rest_get_route_for_post( $post );
	}  | Version | Description | 
|---|---|
| 5.5.0 | Use rest_get_route_for_post() | 
| 5.0.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_rest_post_search_handler/detect_rest_item_route