Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable
CLIRunner::register_commands()
Registers commands for CLI.
Method of the class: CLIRunner{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CLIRunner = new CLIRunner(); $CLIRunner->register_commands();
CLIRunner::register_commands() CLIRunner::register commands code WC 8.6.1
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' ) ); }