Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_url

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
380       * Use this filter to adjust the url returned by the get_rest_url() function.
381       *
382       * @since 4.4.0
383       *
384       * @param string $url     REST URL.
385       * @param string $path    REST route.
386       * @param int    $blog_id Blog ID.
387       * @param string $scheme  Sanitization scheme.
388       */
389      return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
390 }
391
392 /**
393  * Retrieves the URL to a REST endpoint.
394  *
395  * Note: The returned URL is NOT escaped.
396  *
397  * @since 4.4.0
398  *