WC_CLI_COM_Command::register_commands()public staticWC 1.0

Registers a commands for managing Woo.com extensions.

Method of the class: WC_CLI_COM_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_CLI_COM_Command::register_commands();

WC_CLI_COM_Command::register_commands() code WC 8.7.0

public static function register_commands() {
	WP_CLI::add_command( 'wc com extension list', array( 'WC_CLI_COM_Command', 'list_extensions' ) );
	WP_CLI::add_command( 'wc com disconnect', array( 'WC_CLI_COM_Command', 'disconnect' ) );
	WP_CLI::add_command( 'wc com connect', array( 'WC_CLI_COM_Command', 'connect' ) );
}