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



get_networks ›

Since4.6.0
已弃用n/a
get_networks ( $args = array() )
参数:
  • (string|array) $args Optional. Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments. Default empty array.
    Required: No
    默认: array()
返回:
  • (array|int) List of WP_Network objects, a list of network ids when 'fields' is set to 'ids', or the number of networks when 'count' is passed as a query var.
定义在:
文档:

Retrieves a list of networks.



源码

function get_networks( $args = array() ) {
	$query = new WP_Network_Query();

	return $query->query( $args );
}