| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Fluent Forms - Best Form Plugin for WordPress |
| 4 |
Description: Contact Form By Fluent Forms is the advanced Contact form plugin with drag and drop, multi column supported form builder plugin |
| 5 |
Version: 3.2.0 |
| 6 |
Author: WP Fluent Forms |
| 7 |
Author URI: https://wpmanageninja.com |
| 8 |
Plugin URI: https://wpmanageninja.com/wp-fluent-form/ |
| 9 |
License: GPLv2 or later |
| 10 |
Text Domain: fluentform |
| 11 |
Domain Path: /resources/languages |
| 12 |
*/ |
| 13 |
|
| 14 |
defined('ABSPATH') or die; |
| 15 |
|
| 16 |
defined('FLUENTFORM') or define('FLUENTFORM', true); |
| 17 |
define('FLUENTFORM_DIR_PATH', plugin_dir_path(__FILE__)); |
| 18 |
|
| 19 |
|
| 20 |
defined('FLUENTFORM_VERSION') or define('FLUENTFORM_VERSION', '3.2.0'); |
| 21 |
if (!defined('FLUENTFORM_HAS_NIA')) { |
| 22 |
define('FLUENTFORM_HAS_NIA', true); |
| 23 |
} |
| 24 |
|
| 25 |
include FLUENTFORM_DIR_PATH . "framework/Foundation/Bootstrap.php"; |
| 26 |
|
| 27 |
use FluentForm\Framework\Foundation\Bootstrap; |
| 28 |
|
| 29 |
Bootstrap::run(__FILE__); |
| 30 |
|
| 31 |
// Handle Newtwork new Site Activation |
| 32 |
add_action('wpmu_new_blog', function ($blogId) { |
| 33 |
switch_to_blog($blogId); |
| 34 |
include_once plugin_dir_path(__FILE__) . 'app/Modules/Activator.php'; |
| 35 |
(new FluentForm\App\Modules\Activator)->migrate(); |
| 36 |
restore_current_blog(); |
| 37 |
}); |