ActionScheduler_WPCLI_Clean_Command::print_total_batches
Print WP CLI message about how many batches of actions were processed.
Метод класса: ActionScheduler_WPCLI_Clean_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_total_batches( $batches_processed );
- $batches_processed(int) (обязательный)
- Number of batches processed.
Код ActionScheduler_WPCLI_Clean_Command::print_total_batches() ActionScheduler WPCLI Clean Command::print total batches WC 10.0.2
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 ) ); }