'6.0.0'
);
} $is_small_network = !
wp_is_large_user_count( $network_id );
/** This filter is documented in wp-includes/ms-functions.php */
if ( !
apply_filters( 'enable_live_network_counts',
$is_small_network, 'users'
) ) { return false;
} return wp_update_user_counts( $network_id );
}/**
* Updates the total count of users on the site.
*
* @global wpdb $wpdb WordPress database abstraction object.
* @since 6.0.0
*
* @param int|null $network_id ID of the network. Defaults to the current network.
* @return bool Whether the update was successful.
*/