WordPress开发者和主题制作者的搜索引擎



rest_url ›

Since4.4.0
已弃用n/a
apply_filters( 'rest_url', $url, $path, $blog_id, $scheme )
参数: (4)
  • (string) $url REST URL.
    Required: Yes
  • (string) $path REST route.
    Required: Yes
  • (int) $blog_id Blog ID.
    Required: Yes
  • (string) $scheme Sanitization scheme.
    Required: Yes
定义在:
文档:

Filters the REST URL.

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





源码

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