ActionScheduler_WPCLI_Scheduler_command::print_success()protectedWC 1.0

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) (обязательный)
-

Код ActionScheduler_WPCLI_Scheduler_command::print_success() WC 8.7.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
		)
	);
}