首页 WordPress函数大全 get_networks()

get_networks()

2020-05-01 / 4025阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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>Default value: 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.

大家谈论
    我的见解