| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
/** |
| 6 |
* Plugin Name: MisterPlan - Booking Engines |
| 7 |
* Description: Motores de reserva de alojamientos y actividades |
| 8 |
* Author: MisterPlan |
| 9 |
* Author URI: https://misterplan.es |
| 10 |
* Version: 1.1.46 |
| 11 |
* Text Domain: misterplan |
| 12 |
* Domain Path: /languages |
| 13 |
* Requires at least: 5.2 |
| 14 |
* Requires PHP: 8.1 |
| 15 |
* License: GPLv2 or later |
| 16 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 17 |
*/ |
| 18 |
if ( ! class_exists( 'mrplan_TMrPlanPluginAbstract', false ) ) { |
| 19 |
require_once 'lib/class.mrplan_TMrPlanPluginAbstract.php'; |
| 20 |
} |
| 21 |
|
| 22 |
if ( ! class_exists( 'mrplan_TMrPlanPlugin', false ) ) { |
| 23 |
require_once 'class.mrplan_TMrPlanPlugin.php'; |
| 24 |
} |
| 25 |
|
| 26 |
if ( ! class_exists( 'mrplan_TMrPlanPluginAdmin', false ) ) { |
| 27 |
require_once 'class.mrplan_TMrPlanPluginAdmin.php'; |
| 28 |
} |
| 29 |
|
| 30 |
define('MRPLAN_PLUGIN_URL', plugin_dir_url(__FILE__) ); |
| 31 |
|
| 32 |
if( !function_exists('get_plugin_data') ){ |
| 33 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 34 |
} |
| 35 |
|
| 36 |
$plugin_data = get_plugin_data( __FILE__, false, false ); |
| 37 |
|
| 38 |
if (!defined('MRPLAN_PLUGIN_VERSION')) { |
| 39 |
define('MRPLAN_PLUGIN_VERSION', $plugin_data['Version'] ); |
| 40 |
} |
| 41 |
|
| 42 |
add_action( 'init', function() { |
| 43 |
$GLOBALS['TMrPlanPlugin'] = mrplan_TMrPlanPlugin::getInstance(); |
| 44 |
}); |
| 45 |
|