PluginProbe
Easy Hotel – Powerful Hotel Booking / 2.0.4
Easy Hotel – Powerful Hotel Booking v2.0.4
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.4, at easy-hotel.php

66 lines 2.2 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.4
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.4' );
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 register_activation_hook(__FILE__, 'eshb_create_easy_hotel_pages');
34 add_action( 'plugins_loaded', function(){
35
36 ESHB_MAIN::instance();
37 }, 12 );
38
39 /**
40 * Initialize the plugin tracker
41 *
42 * @return void
43 */
44 function eshb_appsero_init_tracker() {
45
46 if ( ! class_exists( 'Appsero\Client' ) ) {
47 include ESHB_PL_PATH . 'admin/includes/opt-in/Client.php';
48 }
49
50 $client = new Appsero\Client( 'aad425e0-9ec8-4de0-a3cf-011a98a4fb39', 'Easy Hotel Booking – Powerful Hotel Booking', __FILE__ );
51
52 // Active insights
53 $client->insights()->init();
54
55 }
56 add_action( 'plugins_loaded', 'eshb_appsero_init_tracker' );
57
58
59 add_filter( 'eshb_booking_action_messages', function($messages, $args){
60 $messages['maximumCapacity'] = __('Add additional guests below', 'easy-hotel');
61 return $messages;
62 }, 10, 2 );
63
64 add_filter( 'eshb_booking_capacity_count_show', function($show, $args){
65 return false;
66 }, 10, 2 );