| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Booking Calendar | Appointment Booking | BookIt |
| 4 |
* Plugin URI: https://bookit.stylemixthemes.com/ |
| 5 |
* Description: Booking Appointments Calendar. You can easily realize Booking Appointments with this plugin. |
| 6 |
* Author: StylemixThemes |
| 7 |
* Author URI: https://stylemixthemes.com/ |
| 8 |
* License: GNU General Public License v2 or later |
| 9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 |
* Text Domain: bookit |
| 11 |
* Version: 2.1.3 |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 15 |
|
| 16 |
define( 'BOOKIT_VERSION', '2.1.3' ); |
| 17 |
define( 'BOOKIT_DB_VERSION', '2.1.3' ); |
| 18 |
define( 'BOOKIT_FILE', __FILE__ ); |
| 19 |
define( 'BOOKIT_PATH', dirname( BOOKIT_FILE ) ); |
| 20 |
define( 'BOOKIT_INCLUDES_PATH', BOOKIT_PATH . '/includes/' ); |
| 21 |
define( 'BOOKIT_CLASSES_PATH', BOOKIT_INCLUDES_PATH . 'classes/' ); |
| 22 |
define( 'BOOKIT_URL', plugin_dir_url( BOOKIT_FILE ) ); |
| 23 |
|
| 24 |
require_once( BOOKIT_PATH . '/includes/autoload.php' ); |
| 25 |
|
| 26 |
register_activation_hook( BOOKIT_FILE, 'bookit_plugin_activation'); |
| 27 |
register_deactivation_hook( BOOKIT_FILE, 'bookit_plugin_deactivation'); |
| 28 |
register_uninstall_hook( BOOKIT_FILE, 'bookit_plugin_uninstall'); |
| 29 |
|
| 30 |
if ( is_admin() ) { |
| 31 |
require_once BOOKIT_PATH . '/includes/item-announcements.php'; |
| 32 |
} |
| 33 |
|