Filter hook 'rest_url'

in WP Core File wp-includes/rest-api.php at line 517

Description

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

Occurrences

Filename Line Number
wp-includes/rest-api.php 517

Parameters

Type Name Description
string $url REST URL.
string $path REST route.
int|null $blog_id Blog ID.
string $scheme Sanitization scheme.

PHP Doc

/**
	 * Filters the REST URL.
	 *
	 * 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|null $blog_id Blog ID.
	 * @param string   $scheme  Sanitization scheme.
	 */