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:

Description

Gets the REST route for the currently queried object.

Related Functions

register_rest_route, get_queried_object, rest_ensure_response, get_queried_object_id, rest_filter_response_by_context

Top Google Results

User discussions

wpseek mobile