PluginProbe
Booking Calendar / 11.5
Booking Calendar v11.5
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 11.5, at wpdev-booking.php

141 lines 6.4 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: Booking Calendar is the original WordPress booking plugin — trusted since 2009. Easily add a calendar to your site, display availability, and accept bookings for appointments, events, time slots, or full-day reservations.
6 Author: wpdevelop, oplugins
7 Author URI: https://wpbookingcalendar.com/
8 Text Domain: booking
9 Domain Path: /languages/
10 Version: 11.5
11 License: GPLv2 or later
12 */
13
14 /*
15 Copyright 2009 - 2026 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', '11.5' );
38 }
39 if ( ! defined( 'WP_BK_PRO_BFB_ONLY_VERSION' ) ) {
40 define( 'WP_BK_PRO_BFB_ONLY_VERSION', '11.4' ); // First Pro version that no longer loads legacy Booking Form settings pages.
41 }
42 if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) {
43 define( 'WP_BK_MINOR_UPDATE', true );
44 }
45
46 /**
47 * Default Form Style accent color for new Booking Calendar installations.
48 *
49 * Existing saved settings are intentionally preserved when this value changes.
50 *
51 * @since 11.5.0
52 * @var string
53 */
54 if ( ! defined( 'WPBC_DEFAULT_FORM_ACCENT_COLOR' ) ) {
55 define( 'WPBC_DEFAULT_FORM_ACCENT_COLOR', '#4765d5' ); // '#4765d5' -> default blue '#465160'; -> black // '#3858e9'; -> light blue // '#3849e8' -> light Woo.
56 }
57
58 /**
59 * Master release gate for unfinished Booking Calendar 11.5 functionality.
60 *
61 * Keep this disabled in 11.4.x maintenance releases. Define it as true before
62 * Booking Calendar loads when testing 11.5, and change the default only when
63 * Services and the Appointment flow are release-ready.
64 */
65 if ( ! defined( 'WPBC_ENABLE_11_5_FEATURES' ) ) {
66 define( 'WPBC_ENABLE_11_5_FEATURES', true );
67 if ( WPBC_ENABLE_11_5_FEATURES ) {
68 define( 'WPBC_ENABLE_APPOINTMENT_TESTS', false );
69 }
70 }
71
72 // ---------------------------------------------------------------------------------------------------------------------
73 // PRIMARY URL CONSTANTS
74 // ---------------------------------------------------------------------------------------------------------------------
75
76 if ( ! defined( 'WPBC_FILE' ) ) {
77 define( 'WPBC_FILE', __FILE__ ); // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php
78 }
79
80 if ( ! defined( 'WPBC_PLUGIN_FILENAME' ) ) {
81 define( 'WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); // wpdev-booking.php .
82 }
83
84 if ( ! defined( 'WPBC_PLUGIN_DIRNAME' ) ) {
85 define( 'WPBC_PLUGIN_DIRNAME', plugin_basename( __DIR__ ) ); // plugin-name .
86 }
87
88 if ( ! defined( 'WPBC_PLUGIN_DIR' ) ) {
89 define( 'WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); // ..\home\siteurl\www\wp-content\plugins\plugin-name
90 }
91
92 if ( ! defined( 'WPBC_PLUGIN_URL' ) ) {
93 define( 'WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); // https: //website.com/wp-content/plugins/plugin-name .
94 }
95
96 if ( ! defined( 'WP_BK_MIN_WP_VERSION' ) ) {
97 define( 'WP_BK_MIN_WP_VERSION', '4.0' ); // Minimum required WP version.
98 }
99
100 if ( ! defined( 'WPBC_JS_IN_FOOTER' ) ) {
101 define( 'WPBC_JS_IN_FOOTER', true ); // Load all JavaScript files of plugin at footer or in header.
102 }
103
104 // ---------------------------------------------------------------------------------------------------------------------
105 // == SYSTEM CONSTANTS ==
106 // ---------------------------------------------------------------------------------------------------------------------
107 if ( ! defined( 'WP_BK_RESPONSE' ) ) {
108 define( 'WP_BK_RESPONSE', false );
109 }
110 if ( ! defined( 'WPBC_IS_PLAYGROUND' ) ) {
111 define( 'WPBC_IS_PLAYGROUND', ( isset( $_SERVER['SERVER_SOFTWARE'] ) && ( 'PHP.wasm' === $_SERVER['SERVER_SOFTWARE'] ) ) );
112 }
113
114 // Intentionally completely disable showing booking deatils in Timeline view on Front-End side. // FixIn: 10.14.11.1.
115 if ( ! defined( 'WPBC_DISABLE_POPOVER_IN_TIMELINE' ) ) {
116 define( 'WPBC_DISABLE_POPOVER_IN_TIMELINE', true );
117 }
118
119 // ---------------------------------------------------------------------------------------------------------------------
120 // == DEBUG CONSTANTS ==
121 // ---------------------------------------------------------------------------------------------------------------------
122 if ( true ) {
123 // :: LIVE
124 if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) {
125 define( 'WP_BK_BETA_DATA_FILL', 0 );
126 } // Set 0 for no filling or 2 for 241 bookings or more for more.
127 } else {
128 // :: DEBUG
129 define( 'WP_BK_BETA_DATA_FILL', 1 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
130 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
131 define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times.
132 }
133
134
135
136
137 // ---------------------------------------------------------------------------------------------------------------------
138 // == Go ==
139 // ---------------------------------------------------------------------------------------------------------------------
140 require_once WPBC_PLUGIN_DIR . '/core/wpbc.php';
141