Action_Scheduler\WP_CLI\Action

Generate_Command::print_success()protectedWC 1.0

Print a success message with the action ID.

Method of the class: Generate_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->print_success( $actions_added, $action_type );
$actions_added(int) (required)
Number of actions generated.
$action_type(string) (required)
Type of actions scheduled.

Generate_Command::print_success() code WC 9.8.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
		)
	);
}