wp_is_large_network

过滤钩子
apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id )
参数
  • (bool) $is_large_network Whether the network has more than 10000 users or sites.
    Required:
  • (string) $component The component to count. Accepts 'users', or 'sites'.
    Required:
  • (int) $count The count of items for the component.
    Required:
  • (int) $network_id The ID of the network being checked.
    Required:
定义位置
相关勾子
pre_get_networkswp_is_large_user_countget_networkparse_network_querypopulate_network_meta
相关方法
wp_is_large_networkwp_get_networkis_main_networkwp_image_editorpopulate_networkwp_is_large_user_count
引入
4.8.0
弃用
-

wp_is_large_network:此函数检查网络在 WordPress 中是否被视为“大型”网络。如果一个网络拥有超过 10,000 个用户或站点,则该网络被视为“大型”网络。

过滤网络是否被认为是大型的。

return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 09:36:28

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: