PluginProbe
Booking Calendar / 10.11
Booking Calendar v10.11
11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 10.11.3 10.11.4 10.12.0 10.12.1 All 199 releases
booking / wpdev-booking.php

wpdev-booking.php in Booking Calendar 10.11, at wpdev-booking.php

105 lines 5.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: Booking Calendar
4 Plugin URI: https://wpbookingcalendar.com/demo/
5 Description: <a href="https://wpbookingcalendar.com/"><strong>Booking Calendar</strong></a> is the original first and most popular WordPress booking plugin. <strong>Show your availability</strong> on a calendar, receive and manage <strong>full-day</strong> or <strong>time-slot bookings</strong> in a modern and intuitive booking panel. <strong>Sync</strong> your events and <strong>schedule appointments</strong> with ease using this <strong>awesome booking system</strong>.
6 Author: wpdevelop, oplugins
7 Author URI: https://wpbookingcalendar.com/
8 Text Domain: booking
9 Domain Path: /languages/
10 Version: 10.11
11 License: GPLv2 or later
12 */
13
14 /*
15 Copyright 2009 - 2025 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
16
17 This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, either version 2 of the License, or
20 (at your option) any later version.
21
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with this program. If not, see <http://www.gnu.org/licenses/>
29 */
30
31 if ( ! defined( 'ABSPATH' ) ) {
32 die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly.
33 }
34
35
36 if ( ! defined( 'WP_BK_VERSION_NUM' ) ) {
37 define( 'WP_BK_VERSION_NUM', '10.11' );
38 }
39 if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) {
40 define( 'WP_BK_MINOR_UPDATE', false );
41 }
42
43
44 // ---------------------------------------------------------------------------------------------------------------------
45 // PRIMARY URL CONSTANTS
46 // ---------------------------------------------------------------------------------------------------------------------
47
48 if ( ! defined( 'WPBC_FILE' ) ) {
49 define( 'WPBC_FILE', __FILE__ ); // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php
50 }
51
52 if ( ! defined( 'WPBC_PLUGIN_FILENAME' ) ) {
53 define( 'WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); // wpdev-booking.php .
54 }
55
56 if ( ! defined( 'WPBC_PLUGIN_DIRNAME' ) ) {
57 define( 'WPBC_PLUGIN_DIRNAME', plugin_basename( __DIR__ ) ); // plugin-name .
58 }
59
60 if ( ! defined( 'WPBC_PLUGIN_DIR' ) ) {
61 define( 'WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); // ..\home\siteurl\www\wp-content\plugins\plugin-name
62 }
63
64 if ( ! defined( 'WPBC_PLUGIN_URL' ) ) {
65 define( 'WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); // https: //website.com/wp-content/plugins/plugin-name .
66 }
67
68 if ( ! defined( 'WP_BK_MIN_WP_VERSION' ) ) {
69 define( 'WP_BK_MIN_WP_VERSION', '4.0' ); // Minimum required WP version.
70 }
71
72 if ( ! defined( 'WPBC_JS_IN_FOOTER' ) ) {
73 define( 'WPBC_JS_IN_FOOTER', true ); // Load all JavaScript files of plugin at footer or in header.
74 }
75
76 // ---------------------------------------------------------------------------------------------------------------------
77 // == SYSTEM CONSTANTS ==
78 // ---------------------------------------------------------------------------------------------------------------------
79 if ( ! defined( 'WP_BK_RESPONSE' ) ) {
80 define( 'WP_BK_RESPONSE', false );
81 }
82
83 // ---------------------------------------------------------------------------------------------------------------------
84 // == DEBUG CONSTANTS ==
85 // ---------------------------------------------------------------------------------------------------------------------
86 if ( true ) {
87 // :: LIVE
88 if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) {
89 define( 'WP_BK_BETA_DATA_FILL', 0 );
90 } // Set 0 for no filling or 2 for 241 bookings or more for more.
91 } else {
92 // :: DEBUG
93 define( 'WP_BK_BETA_DATA_FILL', 2 );
94 define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times.
95 }
96
97
98 if ( ! defined( 'WPBC_NEW_LISTING' ) ) {
99 define( 'WPBC_NEW_LISTING', true );
100 }
101
102 // ---------------------------------------------------------------------------------------------------------------------
103 // == Go ==
104 // ---------------------------------------------------------------------------------------------------------------------
105 require_once WPBC_PLUGIN_DIR . '/core/wpbc.php';