ActionScheduler_WPCLI_QueueRunner::setup_progress_bar()
Set up the WP CLI progress bar.
Метод класса: ActionScheduler_WPCLI_QueueRunner{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->setup_progress_bar();
Код ActionScheduler_WPCLI_QueueRunner::setup_progress_bar() ActionScheduler WPCLI QueueRunner::setup progress bar WC 7.7.0
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' ), number_format_i18n( $count ) ), $count ); }