Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_queried_resource_route

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2249      }
2250
2251      /**
2252       * Filters the REST route for the currently queried object.
2253       *
2254       * @since 5.5.0
2255       *
2256       * @param string $link The route with a leading slash, or an empty string.
2257       */
2258      return apply_filters( 'rest_queried_resource_route', $route );
2259 }
2260