get_networks()
get_networks( string|array $args = array() )
检索网络列表。
Retrieves a list of networks.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$args | (string | array) | 可选 | 参数数组或字符串。有关接受参数的信息,请参见WP_Network_Query::parse_Query()。 |
返回(Return)
(array|int)WP_Network objects的列表,“fields”设置为“ids”时的网络id列表,或“count”作为查询变量传递时的网络数。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/ms-network.php:63 | 4 | 1 function |
get_networks() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_networks/