apply_filters ( ‘rest_url’, string $url , string $path , int|null $blog_id , string $scheme )

Filters the REST URL.

Description

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

Parameters

$url string
REST URL.
$path string
REST route.
$blog_id int | null
Blog ID.
$scheme string
Sanitiçation scheme.

Source

return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

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