ActionScheduler_WPCLI_Clean_Command::print_success
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() ActionScheduler WPCLI Clean Command::print success WC 10.4.3
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
)
);
}