Attempts to detect the route to access a single item.
Description
See also
Parameters
$postWP_Postrequired- Post object.
Source
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 );
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Use rest_get_route_for_post() |
| 5.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.