首页 WordPress函数大全 get_network()

get_network()

2020-05-01 / 3613阅 / 悠然

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

get_network( WP_Network|int|null $network = null )

Retrieves network data given a network ID or network object.

描述

Network data will be cached and returned after being passed through a filter. If the provided network is empty, the current network global will be used.

参数

$network

(WP_Network|int|null)
(Optional)
Network to retrieve. Default is the current network.

Default value: null

返回

(WP_Network|null) The network object or null if not found.

大家谈论
    我的见解