wp_schedule_update_network_counts

Schedule update of the network-wide counts for the current network.

Description

wp_schedule_update_network_counts(); 

Usage

  1. if ( !function_exists( 'wp_schedule_update_network_counts' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_schedule_update_network_counts(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. function wp_schedule_update_network_counts() { 
  2. if ( !is_main_site() ) 
  3. return; 
  4.  
  5. if ( ! wp_next_scheduled('update_network_counts') && ! wp_installing() ) 
  6. wp_schedule_event(time(), 'twicedaily', 'update_network_counts');