wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_schedule_update_network_counts › WordPress Function

Since3.1.0
已弃用n/a
wp_schedule_update_network_counts ( 没有参数 )
定义在:
文档:

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



源码

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' );
	}
}