| 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 |
|