wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_schedule_update_user_counts › WordPress Function

Since6.0.0
Deprecatedn/a
wp_schedule_update_user_counts ( No parameters )
Defined at:
Codex:

Schedules a recurring recalculation of the total count of users.



Source

function wp_schedule_update_user_counts() {
	if ( ! is_main_site() ) {
		return;
	}

	if ( ! wp_next_scheduled( 'wp_update_user_counts' ) && ! wp_installing() ) {
		wp_schedule_event( time(), 'twicedaily', 'wp_update_user_counts' );
	}
}