enable_live_network_counts
apply_filters( ‘enable_live_network_counts’, bool $small_network, string $context )
筛选器挂钩:筛选创建新站点时是更新网络站点还是更新用户计数。
Filter Hook: Filters whether to update network site or user counts when a new site is created.
说明(Description)
另见 wp_is_large_network()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$small_network | (bool) | 网络是否被认为很小。 |
$context | (string) | 上下文。“用户”或“站点”。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.7.0 | wp-includes/ms-functions.php:2395 | 2 | 0 |
enable_live_network_counts 为WP2原创文章,链接:https://www.wp2.cn/hook/enable_live_network_counts/