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



get_network_by_path › WordPress Function

Since3.9.0
已弃用n/a
get_network_by_path ( $domain, $path, $segments = null )
参数: (3)
  • (string) $domain Domain to check.
    Required: Yes
  • (string) $path Path to check.
    Required: Yes
  • (int|null) $segments Path segments to use. Defaults to null, or the full path.
    Required: No
    默认: null
返回:
  • (WP_Network|false) Network object if successful. False when no network is found.
定义在:
文档:

Retrieves the closest matching network for a domain and path.



源码

function get_network_by_path( $domain, $path, $segments = null ) {
	return WP_Network::get_by_path( $domain, $path, $segments );
}