ActionScheduler_WPCLI_Scheduler_command::print_total_batches
Print WP CLI message about how many batches of actions were processed.
Method of the class: ActionScheduler_WPCLI_Scheduler_command{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->print_total_batches( $batches_completed );
- $batches_completed(int) (required)
- Number of completed batches.
ActionScheduler_WPCLI_Scheduler_command::print_total_batches() ActionScheduler WPCLI Scheduler command::print total batches code WC 10.3.3
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
)
);
}