apply_filters( 'rest_url', string $url, string $path, int $blog_id, string $scheme )

Filters the REST URL.


Description

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


Parameters

$url

REST URL.

$path

REST route.

$blog_id

Blog ID.

$scheme

Sanitization scheme.


Source

File: wp-includes/rest-api.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.