wphooks.info - rest_url

rest_url

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/rest-api.php:
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
	 *
	 * Use this filter to adjust the url returned by the get_rest_url() function.
	 *
	 * @since 4.4.0
	 *
	 * @param string $url     REST URL.
	 * @param string $path    REST route.
	 * @param int    $blog_id Blog ID.
	 * @param string $scheme  Sanitization scheme.
	 */
	return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
}

/**
 * Retrieves the URL to a REST endpoint.
 *
 * Note: The returned URL is NOT escaped.
 *
 * @since 4.4.0
 *