-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgragrid.php
47 lines (42 loc) · 1.21 KB
/
gragrid.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
<?php
/**
* Gragrid: Gravity Forms + SendGrid
*
* @package Gragrid
* @author Vladimir Contreras
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Gragrid: Gravity Forms + SendGrid
* Plugin URI: https://github.com/vlasscontreras/gragrid
* Description: Integrates Gravity Forms with SendGrid, allowing form submissions to be automatically sent to your SendGrid contact lists.
* Version: 2.2.2
* Requires at least: 5.2
* Requires PHP: 7.3
* Author: Vladimir Contreras
* Author URI: https://github.com/vlasscontreras
* Text Domain: gragrid
* Domain Path: /languages
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
/**
* Current add-on version
*/
define( 'GRAGRID_VERSION', '2.2.2' );
/**
* If the Feed Add-On Framework exists, SendGrid Add-On is loaded.
*
* @since 1.0.0
*/
function gragrid_load() {
if ( ! method_exists( 'GFForms', 'include_feed_addon_framework' ) ) {
return;
}
require_once 'class-gragrid.php';
GFAddOn::register( 'Gragrid' );
}
add_action( 'gform_loaded', 'gragrid_load', 5 );