get_network_by_path()
最后更新于:2021-11-26 09:59:28
get_network_by_path( string$domain, string$path, int|null$segments=null)Retrieve the closest matching network for a domain and path.
参数
- $domain
-
(string) (Required) Domain to check.
- $path
-
(string) (Required) Path to check.
- $segments
-
(int|null) (Optional) Path segments to use. Defaults to null, or the full path.
Default value: null
响应
(GC_Network|false) Network object if successful. False when no network is found.
源文件
文件: gc-includes/ms-load.php
function get_network_by_path( $domain, $path, $segments = null ) {
return GC_Network::get_by_path( $domain, $path, $segments );
}