ActionScheduler_WPCLI_Scheduler_command::print_success()
Print a success message with the number of completed actions.
Method of the class: ActionScheduler_WPCLI_Scheduler_command{}
No Hooks.
Returns
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->print_success( $actions_completed );
- $actions_completed(int) (required)
- Number of completed actions.
ActionScheduler_WPCLI_Scheduler_command::print_success() ActionScheduler WPCLI Scheduler command::print success code WC 9.8.5
protected function print_success( $actions_completed ) { WP_CLI::success( sprintf( /* translators: %d refers to the total number of tasks completed */ _n( '%d scheduled task completed.', '%d scheduled tasks completed.', $actions_completed, 'woocommerce' ), $actions_completed ) ); }