PluginProbe
Travelpayouts / trunk
Travelpayouts vtrunk
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 1.1.23 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 All 56 releases
travelpayouts / travelpayouts.php

travelpayouts.php in Travelpayouts trunk, at travelpayouts.php

49 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 * @link http://www.travelpayouts.com/?locale=en
10 * @since 1.0.0
11 * @package Travelpayouts
12 * @wordpress-plugin
13 * Plugin Name: Travelpayouts
14 * Plugin URI: https://wordpress.org/plugins/travelpayouts/
15 * Description: Earn money and make your visitors happy! Offer them useful tools for their travel needs. Earn on commission for each booking.
16 * Version: 1.2.3
17 * Author: travelpayouts
18 * Author URI: http://www.travelpayouts.com/?locale=en
19 * License: GPL-2.0+
20 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
21 * Text Domain: travelpayouts
22 * Domain Path: /languages
23 */
24
25 use Travelpayouts\includes\Activator;
26 use Travelpayouts\includes\Deactivator;
27
28 require_once ABSPATH . '/wp-admin/includes/plugin.php';
29
30 // Import vendor
31 $autoloadPath = __DIR__ . '/vendor/autoload.php';
32
33 if (!file_exists($autoloadPath)) {
34 deactivate_plugins(plugin_basename(__FILE__));
35 wp_die('Main autoloader file is not exist');
36 }
37
38 require 'redux-core/travelpayouts-settings-framework.php';
39
40 require_once $autoloadPath;
41 // If this file is called directly, abort.
42 if (!defined('WPINC')) {
43 die;
44 }
45
46 register_activation_hook(__FILE__, [Activator::class, 'onActivate']);
47 register_deactivation_hook(__FILE__, [Deactivator::class, 'onDeactivation']);
48 add_action('init', ['Travelpayouts', 'getInstance'], 0);
49