includes(); $this->hooks(); } /** * Load command files. */ private function includes() { require_once dirname( __FILE__ ) . '/cli/class-wiaas-update-db-command.php'; } /** * Sets up and hooks WP CLI to our CLI code. */ private function hooks() { WP_CLI::add_hook( 'after_wp_load', 'Wiaas_CLI_Update_DB_Command::register_commands' ); } } new Wiaas_CLI();