rest_get_queried_resource_route
rest_get_queried_resource_route ( No parameters )
Returns:- (string) The REST route of the resource, or an empty string if no resource identified.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Gets the REST route for the currently queried object.