wp_schedule_update_network_counts

The timeline below displays how wordpress function wp_schedule_update_network_counts has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Schedules update of the network-wide counts for the current network.
 *
 * @since 3.1.0
 */
function wp_schedule_update_network_counts()
{
    if (!is_main_site()) {
        return;
    }
    if (!wp_next_scheduled('update_network_counts') && !wp_installing()) {
        wp_schedule_event(time(), 'twicedaily', 'update_network_counts');
    }
}

WordPress Version: 4.4

/**
 * Schedule update of the network-wide counts for the current network.
 *
 * @since 3.1.0
 */
function wp_schedule_update_network_counts()
{
    if (!is_main_site()) {
        return;
    }
    if (!wp_next_scheduled('update_network_counts') && !wp_installing()) {
        wp_schedule_event(time(), 'twicedaily', 'update_network_counts');
    }
}

WordPress Version: 3.7

/**
 * Schedule update of the network-wide counts for the current network.
 *
 * @since 3.1.0
 */
function wp_schedule_update_network_counts()
{
    if (!is_main_site()) {
        return;
    }
    if (!wp_next_scheduled('update_network_counts') && !defined('WP_INSTALLING')) {
        wp_schedule_event(time(), 'twicedaily', 'update_network_counts');
    }
}