ActionScheduler_WPCLI_Scheduler_command::print_success
Print a success message with the number of completed actions.
Метод класса: ActionScheduler_WPCLI_Scheduler_command{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_success( $actions_completed );
- $actions_completed(int) (обязательный)
- Number of completed actions.
Код ActionScheduler_WPCLI_Scheduler_command::print_success() ActionScheduler WPCLI Scheduler command::print success WC 11.1.0
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
)
);
}