get_networks
函数
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: 否
- Default: array()
-
(string|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.
- 定义位置
-
-
wp-includes/ms-network.php
, line 63
-
wp-includes/ms-network.php
- 引入
- 4.6.0
- 弃用
- –
Retrieves a list of networks.
function get_networks( $args = array() ) { $query = new WP_Network_Query(); return $query->query( $args ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。