rest_url

SummerySummery

Filters the REST URL.

Syntax

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

DescriptionDescription

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

ParametersParameters

$url

(string) REST URL.

$path

(string) REST route.

$blog_id

(int) Blog ID.

$scheme

(string) Sanitization scheme.

SourceSource

File: wp-includes/rest-api.php

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top