Action_Scheduler\WP_CLI\Action
Create_Command::print_success
Print a success message with the action ID.
Метод класса: Create_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_success( $action_id, $action_type );
- $action_id(int) (обязательный)
- Created action ID.
- $action_type(строка) (обязательный)
- Type of action.
Код Create_Command::print_success() Create Command::print success WC 10.0.2
protected function print_success( $action_id, $action_type ) { \WP_CLI::success( sprintf( /* translators: %1$s: type of action, %2$d: ID of the created action */ __( '%1$s action (%2$d) scheduled.', 'woocommerce' ), ucfirst( $action_type ), $action_id ) ); }