PluginProbe
Yatra – Travel Booking & Tour Operator Software / 2.1.9
Yatra – Travel Booking & Tour Operator Software v2.1.9
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / yatra.php

yatra.php in Yatra – Travel Booking & Tour Operator Software 2.1.9, at yatra.php

60 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Yatra - Best Travel & Tour Booking Plugin
4 * Plugin URI: https://wpyatra.com/?utm_source=wordpress&utm_medium=wppage&utm_campaign=wporg
5 * Description: Yatra is a free travel & tour booking WordPress plugin to create travel and tour packages for tour operators and travel agencies.
6 * Version: 2.1.9
7 * Author: Mantrabrain
8 * Author URI: https://mantrabrain.com/
9 * License: GPL-2.0+
10 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11 * Text Domain: yatra
12 * Domain Path: /languages
13 */
14
15 if (!defined('ABSPATH')) {
16 exit; // Exit if accessed directly.
17 }
18 // Define YATRA_PLUGIN_FILE.
19 if (!defined('YATRA_FILE')) {
20 define('YATRA_FILE', __FILE__);
21 }
22
23 // Define YATRA_VERSION.
24 if (!defined('YATRA_VERSION')) {
25 define('YATRA_VERSION', '2.1.9');
26 }
27
28 // Define YATRA_PLUGIN_URI.
29 if (!defined('YATRA_PLUGIN_URI')) {
30 define('YATRA_PLUGIN_URI', plugins_url('', YATRA_FILE));
31 }
32
33 // Define YATRA_PLUGIN_DIR.
34 if (!defined('YATRA_PLUGIN_DIR')) {
35 define('YATRA_PLUGIN_DIR', plugin_dir_path(YATRA_FILE));
36 }
37
38
39 // Include the main Yatra class.
40 if (!class_exists('Yatra')) {
41 include_once dirname(__FILE__) . '/includes/class-yatra.php';
42 }
43
44
45 /**
46 * Main instance of Yatra.
47 *
48 * Returns the main instance of Yatra to prevent the need to use globals.
49 *
50 * @return Yatra
51 * @since 1.0.0
52 */
53 function yatra()
54 {
55 return Yatra::instance();
56 }
57
58 // Global for backwards compatibility.
59 $GLOBALS['yatra-instance'] = yatra();
60