# hostinger/2.0.8/includes/class-hostinger.php

Hostinger Tools, version 2.0.8. 41 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.0.8/code/includes/class-hostinger.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.0.8/raw/includes/class-hostinger.php
- Modified: 2024-02-15T06:55:40+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.8/code/includes/class-hostinger.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

class Hostinger {
	protected string $plugin_name = 'Hostinger';
	protected string $version;

	public function bootstrap(): void {
		$this->version = $this->get_plugin_version();

		require_once HOSTINGER_ABSPATH . 'includes/class-hostinger-bootstrap.php';
		$bootstrap = new Hostinger_Bootstrap();
		$bootstrap->run();
	}

	public function run(): void {
		$this->bootstrap();
	}

	/**
	 * Define constant
	 *
	 * @param string $name Constant name.
	 * @param string|bool $value Constant value.
	 */
	private function define( string $name, $value ): void {
		if ( ! defined( $name ) ) {
			define( $name, $value );
		}
	}

	private function get_plugin_version(): string {
		if ( defined( 'HOSTINGER_VERSION' ) ) {
			return HOSTINGER_VERSION;
		}

		return '1.0.0';
	}
}

```
