# easy-hotel/2.0.2/easy-hotel.php

Easy Hotel – Powerful Hotel Booking, version 2.0.2. 55 lines.

- Page: https://pluginprobe.com/plugins/easy-hotel/2.0.2/code/easy-hotel.php
- Raw: https://pluginprobe.com/plugins/easy-hotel/2.0.2/raw/easy-hotel.php
- Modified: 2026-06-15T17:21:30+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/easy-hotel/2.0.2/code/easy-hotel.php#L10-L20`.

```php
<?php
/**
 * Plugin Name: Easy Hotel
 * Description: Easy Hotel Plugin, A complete hotel booking solution for WordPress website.
 * Plugin URI:  https://themewant.com/downloads/hotel-booking/
 * Author:      Themewant
 * Author URI:  http://themewant.com/
 * Version:     2.0.2
 * License:     GPL2
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: easy-hotel
 * Domain Path: /languages
*/
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

    define( 'ESHB_VERSION', '2.0.2' );
    define( 'ESHB_PL_ROOT', __FILE__ );
    define( 'ESHB_PL_URL', plugins_url( '/', ESHB_PL_ROOT ) );
    define( 'ESHB_PL_PATH', plugin_dir_path( ESHB_PL_ROOT ) );
    define( 'ESHB_DIR_URL', plugin_dir_url( ESHB_PL_ROOT ) );
    define( 'ESHB_PLUGIN_BASE', plugin_basename( ESHB_PL_ROOT ) );
    
    include 'admin/includes/classes/class.helper.php';
    include 'admin/includes/admin-init.php';
    include 'admin/includes/activation.php';
    include 'admin/includes/compat-bogo.php';

    include 'public/includes/widgets/widgets.php';
    include 'public/includes/gutenberg/blocks/blocks.php';
    include 'class.easy-hotel.php';

    register_activation_hook(__FILE__, 'eshb_create_easy_hotel_pages');
    add_action( 'plugins_loaded', function(){
        
            ESHB_MAIN::instance();
    }, 12 );
    
    /**
     * Initialize the plugin tracker
     *
     * @return void
     */
    function eshb_appsero_init_tracker() {

        if ( ! class_exists( 'Appsero\Client' ) ) {
        include ESHB_PL_PATH . 'admin/includes/opt-in/Client.php';
        }

        $client = new Appsero\Client( 'aad425e0-9ec8-4de0-a3cf-011a98a4fb39', 'Easy Hotel Booking – Powerful Hotel Booking', __FILE__ );

        // Active insights
        $client->insights()->init();

    }
    add_action( 'plugins_loaded', 'eshb_appsero_init_tracker' );
```
