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



wp_get_network › WordPress Function

Since3.9.0
已弃用4.7.0
wp_get_network ( $network )
参数:
  • (object|int) $network The network's database row or ID.
    Required: Yes
查看:
返回:
  • (WP_Network|false) Object containing network information if found, false if not.
定义在:
文档:

Retrieves an object containing information about the requested network.



源码

function wp_get_network( $network ) {
	_deprecated_function( __FUNCTION__, '4.7.0', 'get_network()' );

	$network = get_network( $network );
	if ( null === $network ) {
		return false;
	}

	return $network;
}