ActionScheduler_WPCLI_Clean_Command::print_total_batches()
Print WP CLI message about how many batches of actions were processed.
Method of the class: ActionScheduler_WPCLI_Clean_Command{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->print_total_batches( $batches_processed );
- $batches_processed(int) (required)
- -
ActionScheduler_WPCLI_Clean_Command::print_total_batches() ActionScheduler WPCLI Clean Command::print total batches code WC 9.3.3
protected function print_total_batches( int $batches_processed ) { WP_CLI::log( sprintf( /* translators: %d refers to the total number of batches processed */ _n( '%d batch processed.', '%d batches processed.', $batches_processed, 'woocommerce' ), $batches_processed ) ); }