wp_schedule_update_network_counts()
Schedules update of the network-wide counts for the current network.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_schedule_update_network_counts();
Changelog
| Since 3.1.0 | Introduced. |
wp_schedule_update_network_counts() wp schedule update network counts code WP 7.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' );
}
}