-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnector-for-gravityforms-mailpoet.php
49 lines (41 loc) · 1.23 KB
/
connector-for-gravityforms-mailpoet.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
42
43
44
45
46
47
48
49
<?php
/**
* Plugin Name: Connector for Gravity Forms and MailPoet
* Plugin URI: https://gravitywp.com/add-on/connector-for-gravityforms-mailpoet
* Description: Integrate Gravity Forms with MailPoet to easily subscribe users to your MailPoet newsletters upon form submission.
* Version: 1.0.1
* Author: GravityWP
* Author URI: https://gravitywp.com
* License: GPL3
* Text Domain: connector-for-gravityforms-mailpoet
* Domain Path: /languages
*/
defined( 'ABSPATH' ) || die();
define( 'GRAVITYWP_MP_GF_VERSION', '1.0.1' );
add_action( 'gform_loaded', array( 'GravityWP_Connector_MailPoet_GravityForms_AddOn_Bootstrap', 'load' ), 5 );
/**
* GravityWP_Connector_MailPoet_GravityForms_AddOn_Bootstrap.
*
* @author GravityWP
* @since v1.0
*
* @global
*/
class GravityWP_Connector_MailPoet_GravityForms_AddOn_Bootstrap {
/**
* Function: load.
*
* @author GravityWP
* @version v1.0
* @access public
*
* @return void
*/
public static function load() {
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}
require_once 'class-gravitywp-connector-mailpoet-gravityforms.php';
GFFeedAddOn::register( 'GravityWP\Connector_MailPoet_GravityForms\GravityWP_Connector_MailPoet_GravityForms' );
}
}