| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
class Hostinger { |
| 6 |
protected string $plugin_name = 'Hostinger'; |
| 7 |
protected string $version; |
| 8 |
|
| 9 |
public function bootstrap(): void { |
| 10 |
$this->version = $this->get_plugin_version(); |
| 11 |
|
| 12 |
require_once HOSTINGER_ABSPATH . 'includes/class-hostinger-bootstrap.php'; |
| 13 |
$bootstrap = new Hostinger_Bootstrap(); |
| 14 |
$bootstrap->run(); |
| 15 |
} |
| 16 |
|
| 17 |
public function run(): void { |
| 18 |
$this->bootstrap(); |
| 19 |
} |
| 20 |
|
| 21 |
private function get_plugin_version(): string { |
| 22 |
if ( defined( 'HOSTINGER_VERSION' ) ) { |
| 23 |
return HOSTINGER_VERSION; |
| 24 |
} |
| 25 |
|
| 26 |
return '1.0.0'; |
| 27 |
} |
| 28 |
} |
| 29 |
|