WordPress开发者和主题制作者的搜索引擎



wp_is_large_network ›

Since4.8.0
已弃用n/a
apply_filters( 'wp_is_large_network', $count > 10000, 'users', $count, $network_id )
参数: (4)
  • (bool) $is_large_network Whether the network has more than 10000 users or sites.
    Required: Yes
  • (string) $component The component to count. Accepts 'users', or 'sites'.
    Required: Yes
  • (int) $count The count of items for the component.
    Required: Yes
  • (int) $network_id The ID of the network being checked.
    Required: Yes
定义在:
文档:

Filters whether the network is considered large.





源码

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