WC_CLI_COM_Command::register_commands()public staticWC 1.0

Registers a commands for managing Woo.com extensions.

Метод класса: WC_CLI_COM_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_CLI_COM_Command::register_commands();

Код WC_CLI_COM_Command::register_commands() 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' ) );
}