-
Notifications
You must be signed in to change notification settings - Fork 0
/
gravitysmtp.php
65 lines (51 loc) · 2.38 KB
/
gravitysmtp.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/*
Plugin Name: Gravity SMTP
Plugin URI: https://gravityforms.com
Description: Confidently send emails from your website with secure and reliable SMTP providers and API-based services.
Version: 1.5.0
Author: Gravity Forms
Author URI: https://gravityforms.com
License: GPL-3.0+
Text Domain: gravitysmtp
Domain Path: /languages
------------------------------------------------------------------------
Copyright 2023 Rocketgenius Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses.
*/
defined( 'ABSPATH' ) || die();
// Defines the current version of Gravity SMTP.
define( 'GF_GRAVITY_SMTP_VERSION', '1.5.0' );
define( 'GF_GRAVITY_SMTP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
/**
* Path to GRAVITY_SMTP root folder.
*
* @since 1.0
*/
define( 'GF_GRAVITY_SMTP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'GF_GRAVITY_SMTP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
if ( ! defined( 'GRAVITY_MANAGER_URL' ) ) {
define( 'GRAVITY_MANAGER_URL', 'https://gravityapi.com/wp-content/plugins/gravitymanager' );
}
if ( ! defined( 'GRAVITY_SUPPORT_URL' ) ) {
define( 'GRAVITY_SUPPORT_URL', 'https://www.gravityforms.com/open-support-ticket/' );
}
require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );
add_action( 'plugins_loaded', array( \Gravity_Forms\Gravity_SMTP\Gravity_SMTP::class, 'pre_init' ), 0 );
add_action( 'init', array( \Gravity_Forms\Gravity_SMTP\Gravity_SMTP::class, 'load_plugin' ) );
add_action( 'plugins_loaded', array( \Gravity_Forms\Gravity_SMTP\Gravity_SMTP::class, 'run_upgrade_routines' ), -10 );
register_activation_hook( __FILE__, 'gravitysmtp_activation_hook' );
// Third Party Support
add_action( 'affwp_set_affiliate_status', array( \Gravity_Forms\Gravity_SMTP\Gravity_SMTP::class, 'load_plugin' ), -10 );
function gravitysmtp_activation_hook() {
\Gravity_Forms\Gravity_SMTP\Gravity_SMTP::activation_hook();
}