WC_CLI_Update_Command::register_commandspublic staticWC 1.0

Registers the update command.

Method of the class: WC_CLI_Update_Command{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_CLI_Update_Command::register_commands();

WC_CLI_Update_Command::register_commands() code WC 10.6.2

public static function register_commands() {
	WC()->call_static( WP_CLI::class, 'add_command', 'wc update', array( 'WC_CLI_Update_Command', 'update' ) );
}