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_9790', 10, 4 );
function filter_function_name_9790( $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.

Where the hook is called

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

Where the hook is used (in WP core)

Does not used.