ActionScheduler_WPCLI_Scheduler_command::print_total_batches()protectedWC 1.0

Print WP CLI message about how many batches of actions were processed.

Метод класса: ActionScheduler_WPCLI_Scheduler_command{}

Хуков нет.

Возвращает

null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->print_total_batches( $batches_completed );
$batches_completed(int) (обязательный)
-

Код ActionScheduler_WPCLI_Scheduler_command::print_total_batches() WC 7.7.2

protected function print_total_batches( $batches_completed ) {
	WP_CLI::log(
		sprintf(
			/* translators: %d refers to the total number of batches executed */
			_n( '%d batch executed.', '%d batches executed.', $batches_completed, 'woocommerce' ),
			number_format_i18n( $batches_completed )
		)
	);
}