rest_url

Advertisement

Summery Summery

Filters the REST URL.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$url

REST URL.

$path

REST route.

$blog_id

Blog ID.

$scheme

Sanitization scheme.

Source Source

File: wp-includes/rest-api.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply