# hostinger/2.0.0/includes/class-hostinger-cli.php

Hostinger Tools, version 2.0.0. 27 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.0.0/code/includes/class-hostinger-cli.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.0.0/raw/includes/class-hostinger-cli.php
- Modified: 2024-01-10T09:12:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/2.0.0/code/includes/class-hostinger-cli.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

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

	public function includes(): void {
		require_once HOSTINGER_ABSPATH . 'includes/cli/class-hostinger-maintenance-command.php';
	}

	/**
	 * Sets up and hooks WP CLI to our CLI code.
	 */
	private function hooks(): void {
		WP_CLI::add_hook( 'after_wp_load', 'Hostinger_Maintenance_Command::define_command' );
	}
}

new Hostinger_CLI();

```
