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
查看更多 >