Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable

CLIRunner::register_commands()publicWC 1.0

Registers commands for CLI.

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

Хуков нет.

Возвращает

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

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

$CLIRunner = new CLIRunner();
$CLIRunner->register_commands();

Код CLIRunner::register_commands() WC 8.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' ) );
	WP_CLI::add_command( 'wc cot enable', array( $this, 'enable' ) );
	WP_CLI::add_command( 'wc cot disable', array( $this, 'disable' ) );
	WP_CLI::add_command( 'wc hpos cleanup', array( $this, 'cleanup_post_data' ) );
	WP_CLI::add_command( 'wc hpos status', array( $this, 'status' ) );
	WP_CLI::add_command( 'wc hpos diff', array( $this, 'diff' ) );
	WP_CLI::add_command( 'wc hpos backfill', array( $this, 'backfill' ) );
}