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

Filters the REST URL.

Description Description

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

Parameters Parameters


(string) REST URL.


(string) REST route.


(int) Blog ID.


(string) Sanitization scheme.

Top ↑

Source Source

File: wp-includes/rest-api.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.