ActionScheduler_WPCLI_Scheduler_command::print_total_batches()protectedWC 1.0

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

Method of the class: ActionScheduler_WPCLI_Scheduler_command{}

No Hooks.

Return

null. Nothing (null).

Usage

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

ActionScheduler_WPCLI_Scheduler_command::print_total_batches() code WC 8.7.0

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