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