WC_CLI_COM_Command::register_commands()
Registers a commands for managing WooCommerce.com extensions.
Метод класса: WC_CLI_COM_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_CLI_COM_Command::register_commands();
Код WC_CLI_COM_Command::register_commands() WC CLI COM Command::register commands WC 9.8.2
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' ) ); }