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



home_url ›

Since3.0.0
已弃用n/a
apply_filters( 'home_url', $url, $path, $orig_scheme, $blog_id )
参数: (4)
  • (string) $url The complete home URL including scheme and path.
    Required: Yes
  • (string) $path Path relative to the home URL. Blank string if no path is specified.
    Required: Yes
  • (string|null) $orig_scheme Scheme to give the home URL context. Accepts 'http', 'https', 'relative', 'rest', or null.
    Required: Yes
  • (int|null) $blog_id Site ID, or null for the current site.
    Required: Yes
定义在:
文档:

Filters the home URL.





源码

return apply_filters( 'home_url', $url, $path, $orig_scheme, $blog_id );