Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable
CLIRunner::register_commands()
Registers commands for CLI.
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$CLIRunner = new CLIRunner(); $CLIRunner->register_commands();
Код CLIRunner::register_commands() CLIRunner::register commands WC 7.7.0
public function register_commands() { WP_CLI::add_command( 'wc cot count_unmigrated', array( $this, 'count_unmigrated' ) ); WP_CLI::add_command( 'wc cot migrate', array( $this, 'migrate' ) ); WP_CLI::add_command( 'wc cot sync', array( $this, 'sync' ) ); WP_CLI::add_command( 'wc cot verify_cot_data', array( $this, 'verify_cot_data' ) ); }