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

Hostinger Tools, version 2.0.8. 24 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.0.8/code/includes/class-hostinger-coming-soon.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.0.8/raw/includes/class-hostinger-coming-soon.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-coming-soon.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

class Hostinger_Coming_Soon {
	public function __construct() {
		add_action( 'wp_footer', array( $this, 'register_styles' ) );
		add_action( 'template_redirect', array( $this, 'coming_soon' ) );
	}

	public function coming_soon(): void {
		if ( ! is_user_logged_in() && ! is_admin() && ! current_user_can( 'update_plugins' ) ) {
			include_once HOSTINGER_ABSPATH . 'includes/views/hostinger-coming-soon.php';
			die;
		}
	}

	public function register_styles(): void {
		wp_enqueue_style( 'hostinger_main_styles', HOSTINGER_ASSETS_URL . '/css/coming-soon.css', array(), HOSTINGER_VERSION );
	}
}

new Hostinger_Coming_Soon();

```
