wp_schedule_update_network_counts() WordPress Function
The wp_schedule_update_network_counts function is a function that enables a network administrator to update the count of sites and users on their network. This function is useful for keeping track of how many sites and users are on a network, and for determining when a network might need to be upgraded.
wp_schedule_update_network_counts() #
Schedules update of the network-wide counts for the current network.
Source
File: wp-includes/ms-functions.php
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' );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |