HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/local/sitepad/editor/site-data/plugins/kkart-pro/includes/class-kkart-cli.php
<?php
/**
 * Enables Kkart, via the the command line.
 *
 * @package Kkart\CLI
 * @version 3.0.0
 */

defined( 'ABSPATH' ) || exit;

/**
 * CLI class.
 */
class KKART_CLI {
	/**
	 * Load required files and hooks to make the CLI work.
	 */
	public function __construct() {
		$this->includes();
		$this->hooks();
	}

	/**
	 * Load command files.
	 */
	private function includes() {
		require_once dirname( __FILE__ ) . '/cli/class-kkart-cli-runner.php';
		require_once dirname( __FILE__ ) . '/cli/class-kkart-cli-rest-command.php';
		require_once dirname( __FILE__ ) . '/cli/class-kkart-cli-tool-command.php';
		require_once dirname( __FILE__ ) . '/cli/class-kkart-cli-update-command.php';
	}

	/**
	 * Sets up and hooks WP CLI to our CLI code.
	 */
	private function hooks() {
		WP_CLI::add_hook( 'after_wp_load', 'KKART_CLI_Runner::after_wp_load' );
		WP_CLI::add_hook( 'after_wp_load', 'KKART_CLI_Tool_Command::register_commands' );
		WP_CLI::add_hook( 'after_wp_load', 'KKART_CLI_Update_Command::register_commands' );
	}
}

new KKART_CLI();