ActionScheduler_WPCLI_QueueRunner::setup_progress_bar
Set up the WP CLI progress bar.
Метод класса: ActionScheduler_WPCLI_QueueRunner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->setup_progress_bar();
Код ActionScheduler_WPCLI_QueueRunner::setup_progress_bar() ActionScheduler WPCLI QueueRunner::setup progress bar WC 10.3.6
protected function setup_progress_bar() {
$count = count( $this->actions );
$this->progress_bar = new ProgressBar(
/* translators: %d: amount of actions */
sprintf( _n( 'Running %d action', 'Running %d actions', $count, 'woocommerce' ), $count ),
$count
);
}