WordPress at a glance
filter is not described

rest_url filter-hook . WP 4.4.0

Filters the REST URL.

Use this filter to adjust the url returned by the get_rest_url() function.

Usage

add_filter( 'rest_url', 'filter_function_name_7082', 10, 4 );
function filter_function_name_7082( $url, $path, $blog_id, $scheme ){
	// filter...

	return $url;
}
$url(string)
REST URL.
$path(string)
REST route.
$blog_id(int)
Blog ID.
$scheme(string)
Sanitization scheme.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

get_rest_url()
rest_url
wp-includes/rest-api.php 403
return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );

Where the hook is used (in WP core)

Usage not found!