ActionScheduler_WPCLI_Clean_Command::print_success()protectedWC 1.0

Print a success message with the number of completed actions.

Метод класса: ActionScheduler_WPCLI_Clean_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->print_success( $actions_deleted );
$actions_deleted(int) (обязательный)
Number of deleted actions.

Код ActionScheduler_WPCLI_Clean_Command::print_success() WC 9.6.2

protected function print_success( int $actions_deleted ) {
	WP_CLI::success(
		sprintf(
			/* translators: %d refers to the total number of actions deleted */
			_n( '%d action deleted.', '%d actions deleted.', $actions_deleted, 'woocommerce' ),
			$actions_deleted
		)
	);
}