get_networks() - WordPress 函数参考中文文档

返回介绍

get_networks()

发布于 2017-09-10 字数1441 浏览 1047 评论 0

get_networks( string|array $args = array() )

Retrieves a list of networks.


描述


参数

$args

(string|array)
(Optional)
Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments.

Default value: array()


返回值

(int|array) List of networks or number of found networks if $count argument is true.


源代码

File: wp-includes/ms-blogs.php

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

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

更新日志

Version 描述
4.6.0 Introduced.

相关函数

Uses

  • wp-includes/class-wp-network-query.php:
    WP_Network_Query::__construct()

Used By

  • wp-includes/class-wp-network.php:
    WP_Network::get_by_path()
  • wp-includes/functions.php:
    get_main_network_id()

User Contributed Notes

上一篇:get_network()

下一篇:get_network_by_path()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!