wp_schedule_update_user_counts()WP 6.0.0

Schedules a recurring recalculation of the total count of users.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

wp_schedule_update_user_counts();

Список изменений

С версии 6.0.0 Введена.

Код wp_schedule_update_user_counts() WP 6.4.3

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