*/
if ( ! defined( 'ABSPATH' ) ) {
die( '
Direct access to this file do not allow!
' ); // Exit if accessed directly.
}
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) {
define( 'WP_BK_VERSION_NUM', '11.1' );
}
if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) {
define( 'WP_BK_MINOR_UPDATE', ! true );
}
// ---------------------------------------------------------------------------------------------------------------------
// PRIMARY URL CONSTANTS
// ---------------------------------------------------------------------------------------------------------------------
if ( ! defined( 'WPBC_FILE' ) ) {
define( 'WPBC_FILE', __FILE__ ); // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php
}
if ( ! defined( 'WPBC_PLUGIN_FILENAME' ) ) {
define( 'WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); // wpdev-booking.php .
}
if ( ! defined( 'WPBC_PLUGIN_DIRNAME' ) ) {
define( 'WPBC_PLUGIN_DIRNAME', plugin_basename( __DIR__ ) ); // plugin-name .
}
if ( ! defined( 'WPBC_PLUGIN_DIR' ) ) {
define( 'WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); // ..\home\siteurl\www\wp-content\plugins\plugin-name
}
if ( ! defined( 'WPBC_PLUGIN_URL' ) ) {
define( 'WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); // https: //website.com/wp-content/plugins/plugin-name .
}
if ( ! defined( 'WP_BK_MIN_WP_VERSION' ) ) {
define( 'WP_BK_MIN_WP_VERSION', '4.0' ); // Minimum required WP version.
}
if ( ! defined( 'WPBC_JS_IN_FOOTER' ) ) {
define( 'WPBC_JS_IN_FOOTER', true ); // Load all JavaScript files of plugin at footer or in header.
}
// ---------------------------------------------------------------------------------------------------------------------
// == SYSTEM CONSTANTS ==
// ---------------------------------------------------------------------------------------------------------------------
if ( ! defined( 'WP_BK_RESPONSE' ) ) {
define( 'WP_BK_RESPONSE', false );
}
if ( ! defined( 'WPBC_IS_PLAYGROUND' ) ) {
define( 'WPBC_IS_PLAYGROUND', ( isset( $_SERVER['SERVER_SOFTWARE'] ) && ( 'PHP.wasm' === $_SERVER['SERVER_SOFTWARE'] ) ) );
}
// Intentionally completely disable showing booking deatils in Timeline view on Front-End side. // FixIn: 10.14.11.1.
if ( ! defined( 'WPBC_DISABLE_POPOVER_IN_TIMELINE' ) ) {
define( 'WPBC_DISABLE_POPOVER_IN_TIMELINE', true );
}
// ---------------------------------------------------------------------------------------------------------------------
// == DEBUG CONSTANTS ==
// ---------------------------------------------------------------------------------------------------------------------
if ( true ) {
// :: LIVE
if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) {
define( 'WP_BK_BETA_DATA_FILL', 0 );
} // Set 0 for no filling or 2 for 241 bookings or more for more.
} else {
// :: DEBUG
define( 'WP_BK_BETA_DATA_FILL', 1 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times.
}
if ( ! defined( 'WPBC_NEW_FORM_BUILDER' ) ) {
define( 'WPBC_NEW_FORM_BUILDER', true );
}
// ---------------------------------------------------------------------------------------------------------------------
// == Go ==
// ---------------------------------------------------------------------------------------------------------------------
require_once WPBC_PLUGIN_DIR . '/core/wpbc.php';