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



site_url ›

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

Filters the site URL.





源码

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