ActionScheduler_WPCLI_QueueRunner::setup_progress_bar()protectedWC 1.0

Set up the WP CLI progress bar.

Method of the class: ActionScheduler_WPCLI_QueueRunner{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->setup_progress_bar();

ActionScheduler_WPCLI_QueueRunner::setup_progress_bar() code WC 9.3.3

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
	);
}