PluginProbe
Easy Hotel – Powerful Hotel Booking / 2.0.8
Easy Hotel – Powerful Hotel Booking v2.0.8
2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.9.9 1.9.8 1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 All 110 releases
easy-hotel / easy-hotel.php

easy-hotel.php in Easy Hotel – Powerful Hotel Booking 2.0.8, at easy-hotel.php

59 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Easy Hotel
4 * Description: Easy Hotel Plugin, A complete hotel booking solution for WordPress website.
5 * Plugin URI: https://themewant.com/downloads/hotel-booking/
6 * Author: Themewant
7 * Author URI: http://themewant.com/
8 * Version: 2.0.8
9 * License: GPL2
10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 * Text Domain: easy-hotel
12 * Domain Path: /languages
13 */
14 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
16 define( 'ESHB_VERSION', '2.0.8' );
17 define( 'ESHB_PL_ROOT', __FILE__ );
18 define( 'ESHB_PL_URL', plugins_url( '/', ESHB_PL_ROOT ) );
19 define( 'ESHB_PL_PATH', plugin_dir_path( ESHB_PL_ROOT ) );
20 define( 'ESHB_DIR_URL', plugin_dir_url( ESHB_PL_ROOT ) );
21 define( 'ESHB_PLUGIN_BASE', plugin_basename( ESHB_PL_ROOT ) );
22
23 include 'admin/includes/classes/class.helper.php';
24 include 'admin/includes/admin-init.php';
25 include 'admin/includes/activation.php';
26 include 'admin/includes/compat-bogo.php';
27
28 include 'public/includes/widgets/widgets.php';
29 include 'public/includes/gutenberg/blocks/blocks.php';
30 include 'admin/includes/dashboard/init.php';
31 include 'class.easy-hotel.php';
32
33 // PMS module. Self contained under /pms — remove this line to disable it entirely.
34 include 'pms/pms.php';
35
36 register_activation_hook(__FILE__, 'eshb_create_easy_hotel_pages');
37 add_action( 'plugins_loaded', function(){
38 ESHB_MAIN::instance();
39 }, 12 );
40
41 /**
42 * Initialize the plugin tracker
43 *
44 * @return void
45 */
46 function eshb_appsero_init_tracker() {
47
48 if ( ! class_exists( 'Appsero\Client' ) ) {
49 include ESHB_PL_PATH . 'admin/includes/opt-in/Client.php';
50 }
51
52 $client = new Appsero\Client( 'aad425e0-9ec8-4de0-a3cf-011a98a4fb39', 'Easy Hotel Booking – Powerful Hotel Booking', __FILE__ );
53
54 // Active insights
55 $client->insights()->init();
56
57 }
58
59 add_action( 'plugins_loaded', 'eshb_appsero_init_tracker' );