Core Function
View Source on Trac ↗ rest_get_queried_resource_route()
rest_get_queried_resource_route( ) Gets the REST route for the currently queried object.
Return Value
(string)
The REST route of the resource, or an empty string if no resource identified.
Function Information
Since Version
5.5.0
Source File
wp-includes/rest-api.php
Advertisement