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



enable_live_network_counts ›

Since3.7.0
已弃用n/a
apply_filters( 'enable_live_network_counts', $is_small_network, 'sites' )
参数: (2)
  • (bool) $small_network Whether the network is considered small.
    Required: Yes
  • (string) $context Context. Either 'users' or 'sites'.
    Required: Yes
查看:
  • wp_is_large_network()
定义在:
文档:

Filters whether to update network site or user counts when a new site is created.





源码

if ( ! apply_filters( 'enable_live_network_counts', $is_small_network, 'sites' ) ) {