Filters the REST URL.
Use this filter to adjust the url returned by the get_rest_url() function.
$urlstring
$pathstring
$blog_idint|null
$schemestring
return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url