ActionScheduler_WPCLI_QueueRunner::setup_progress_bar()protectedWC 1.0

Set up the WP CLI progress bar.

Метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->setup_progress_bar();

Код ActionScheduler_WPCLI_QueueRunner::setup_progress_bar() WC 8.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' ), $count ),
		$count
	);
}