network_home_url

過濾鉤子
apply_filters( 'network_home_url', $url, $path, $orig_scheme )
引數
  • (string) $url The complete network home URL including scheme and path.
    Required:
  • (string) $path Path relative to the network home URL. Blank string if no path is specified.
    Required:
  • (string|null) $orig_scheme Scheme to give the URL context. Accepts 'http', 'https', 'relative' or null.
    Required:
定義位置
相關勾子
network_site_urlnetwork_admin_urlnetworks_pre_queryhome_urlnetwork_admin_menu
相關方法
network_home_urlnetwork_site_urlget_home_urlnetwork_admin_urlhome_urlnetwork_step1
引入
3.0.0
棄用
-

network_home_url是一個WordPress函式,用於返回多站點網路的主頁URL。

過濾網路主頁URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'network_home_url', $url, $path, $orig_scheme );
return apply_filters( 'network_home_url', $url, $path, $orig_scheme );
return apply_filters( 'network_home_url', $url, $path, $orig_scheme );

常見問題

FAQs
檢視更多 >