WordPress at a glance
function is not described

ActionScheduler_WPCLI_Scheduler_command::print_total_batches() protected WC 1.0

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

{} It's a method of the class: ActionScheduler_WPCLI_Scheduler_command{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->print_total_batches( $batches_completed );
$batches_completed(int) (required)
-

Code of ActionScheduler_WPCLI_Scheduler_command::print_total_batches() WC 5.0.0

<?php
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 )
		)
	);
}