Action_Scheduler\WP_CLI\Action
Generate_Command::print_success
Print a success message with the action ID.
Метод класса: Generate_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_success( $actions_added, $action_type );
- $actions_added(int) (обязательный)
- Number of actions generated.
- $action_type(строка) (обязательный)
- Type of actions scheduled.
Код Generate_Command::print_success() Generate Command::print success WC 10.0.2
protected function print_success( $actions_added, $action_type ) { \WP_CLI::success( sprintf( /* translators: %1$d refers to the total number of tasks added, %2$s is the action type */ _n( '%1$d %2$s action scheduled.', '%1$d %2$s actions scheduled.', $actions_added, 'woocommerce' ), number_format_i18n( $actions_added ), $action_type ) ); }