-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluentcampaign-pro.php
43 lines (34 loc) · 1.08 KB
/
fluentcampaign-pro.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*
Plugin Name: FluentCRM Pro
Plugin URI: https://fluentcrm.com
Description: Pro Email Automation and Integration Addon for FluentCRM
Version: 2.2.0
Author: Fluent CRM
Author URI: https://fluentcrm.com
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fluentcampaign-pro
Domain Path: /languages
*/
if (defined('FLUENTCAMPAIGN_DIR_FILE')) {
return;
}
define('FLUENTCAMPAIGN_DIR_FILE', __FILE__);
require_once("fluentcampaign_boot.php");
add_action('fluentcrm_loaded', function ($app) {
(new \FluentCampaign\App\Application($app));
do_action('fluentcampaign_loaded', $app);
});
register_activation_hook(
__FILE__, array('FluentCampaign\App\Migration\Migrate', 'run')
);
// Handle Newtwork new Site Activation
add_action('wpmu_new_blog', function ($blogId) {
switch_to_blog($blogId);
\FluentCampaign\App\Migration\Migrate::run(false);
restore_current_blog();
});
add_action('init', function () {
load_plugin_textdomain('fluentcampaign-pro', false, dirname(plugin_basename(__FILE__)) . '/languages');
});