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



rest_url › WordPress过滤钩子

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|null) $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 );