network_site_url

过滤钩子
apply_filters( 'network_site_url', $url, $path, $scheme )
参数
  • (string) $url The complete network site URL including scheme and path.
    Required:
  • (string) $path Path relative to the network site URL. Blank string if no path is specified.
    Required:
  • (string|null) $scheme Scheme to give the URL context. Accepts 'http', 'https', 'relative' or null.
    Required:
定义位置
相关勾子
network_home_urlnetwork_admin_urlnetwork_site_new_formnetwork_site_info_formnetworks_pre_query
相关方法
network_site_urlnetwork_home_urlget_site_urlnetwork_admin_urlnetwork_step1network_step2
引入
3.0.0
弃用
-

network_site_url是一个WordPress函数,用于返回多站点网络中特定站点的URL。

过滤网站URL。

return apply_filters( 'network_site_url', $url, $path, $scheme );

常见问题

FAQs
查看更多 >