ActionScheduler_WPCLI_QueueRunner::setup_progress_bar()
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() 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 ); }