WordPress at Your Fingertips
filter is not described

rest_queried_resource_route filter-hook . WP 5.5.0

Filters the REST route for the currently queried object.


add_filter( 'rest_queried_resource_route', 'filter_function_name_9146' );
function filter_function_name_9146( $link ){
	// filter...

	return $link;
The route with a leading slash, or an empty string.

Where the hook is called

wp-includes/rest-api.php 3140
return apply_filters( 'rest_queried_resource_route', $route );

Where in WP core the hook is used WordPress

Usage not found.