Action_Scheduler\WP_CLI\Action

Create_Command::print_success()protectedWC 1.0

Print a success message with the action ID.

Method of the class: Create_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->print_success( $action_id, $action_type );
$action_id(int) (required)
Created action ID.
$action_type(string) (required)
Type of action.

Create_Command::print_success() code WC 9.8.1

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
		)
	);
}