PluginProbe
MisterPlan – Booking Engines / trunk
MisterPlan – Booking Engines vtrunk
1.1.46 trunk 1. 1.0.10 1.0.11 1.0.13 1.0.14 1.0.15 1.0.9 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.20 1.1.21 1.1.22 All 52 releases
misterplan / init.php

init.php in MisterPlan – Booking Engines trunk, at init.php

45 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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