| 1 |
<?php defined('ABSPATH') or die; |
| 2 |
/** |
| 3 |
* Plugin Name: Fluent Support |
| 4 |
* Description: The Ultimate Support Plugin For Your WordPress. |
| 5 |
* Version: 2.3.2 |
| 6 |
* Author: WPManageNinja LLC |
| 7 |
* Author URI: https://wpmanageninja.com |
| 8 |
* Plugin URI: https://fluentsupport.com |
| 9 |
* License: GPLv2 or later |
| 10 |
* Text Domain: fluent-support |
| 11 |
* Domain Path: /language |
| 12 |
*/ |
| 13 |
|
| 14 |
define('FLUENT_SUPPORT_VERSION', '2.3.2'); |
| 15 |
define('FLUENT_SUPPORT_DB_VERSION', '1.0.5'); |
| 16 |
define('FLUENT_SUPPORT_PRO_MIN_VERSION', '2.3.2'); |
| 17 |
define('FLUENT_SUPPORT_UPLOAD_DIR', 'fluent-support'); |
| 18 |
define('FLUENT_SUPPORT_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 19 |
define('FLUENT_SUPPORT_PLUGIN_PATH', plugin_dir_path(__FILE__)); |
| 20 |
|
| 21 |
require __DIR__ . '/vendor/autoload.php'; |
| 22 |
|
| 23 |
call_user_func(function ($bootstrap) { |
| 24 |
$bootstrap(__FILE__); |
| 25 |
}, require(__DIR__ . '/boot/app.php')); |
| 26 |
|
| 27 |
|
| 28 |
add_action('wp_insert_site', function ($new_site) { |
| 29 |
if (is_plugin_active_for_network('fluent-support/fluent-support.php')) { |
| 30 |
switch_to_blog($new_site->blog_id); |
| 31 |
(new \FluentSupport\App\Hooks\Handlers\ActivationHandler)->handle(false); |
| 32 |
restore_current_blog(); |
| 33 |
} |
| 34 |
}); |
| 35 |
|