rest_queried_resource_route WordPress Filter Hook
The rest_queried_resource_route hook is used to filter the route for a REST API request prior to dispatching the request. This hook allows you to change the route for a request based on the resource type being requested.
apply_filters( 'rest_queried_resource_route', string $link ) #
Filters the REST route for the currently queried object.
Parameters
- $link
(string)The route with a leading slash, or an empty string.
Source
File: wp-includes/rest-api.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |