# misterplan/trunk/init.php

MisterPlan – Booking Engines, version trunk. 45 lines.

- Page: https://pluginprobe.com/plugins/misterplan/trunk/code/init.php
- Raw: https://pluginprobe.com/plugins/misterplan/trunk/raw/init.php
- Modified: 2026-06-08T11:13:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/misterplan/trunk/code/init.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Plugin Name: MisterPlan - Booking Engines
 * Description: Motores de reserva de alojamientos y actividades
 * Author: MisterPlan
 * Author URI: https://misterplan.es
 * Version: 1.1.46
 * Text Domain: misterplan
 * Domain Path: /languages
 * Requires at least: 5.2
 * Requires PHP:      8.1
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */
if ( ! class_exists( 'mrplan_TMrPlanPluginAbstract', false ) ) {
    require_once 'lib/class.mrplan_TMrPlanPluginAbstract.php';
}

if ( ! class_exists( 'mrplan_TMrPlanPlugin', false ) ) {
    require_once 'class.mrplan_TMrPlanPlugin.php';
}

if ( ! class_exists( 'mrplan_TMrPlanPluginAdmin', false ) ) {
    require_once 'class.mrplan_TMrPlanPluginAdmin.php';
}

define('MRPLAN_PLUGIN_URL', plugin_dir_url(__FILE__) );

if( !function_exists('get_plugin_data') ){
    require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}

$plugin_data = get_plugin_data( __FILE__, false, false );

if (!defined('MRPLAN_PLUGIN_VERSION')) {
    define('MRPLAN_PLUGIN_VERSION', $plugin_data['Version'] );
}

add_action( 'init', function() {
    $GLOBALS['TMrPlanPlugin'] = mrplan_TMrPlanPlugin::getInstance();
});

```
