过滤REST URL。
原型
apply_filters( 'rest_url', string $url, string $path, int $blog_id, string $scheme )
描述
使用此过滤器调整get_rest_url()函数返回的url。
参数
$url
(string)
REST URL。
$path
(string)
REST路由。
$blog_id
(int)
博客ID。
$scheme
(string)
消毒计划。
源文件
路径:wp-includes/rest-api.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_url/