-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmailrelay.php
More file actions
51 lines (39 loc) · 1.17 KB
/
mailrelay.php
File metadata and controls
51 lines (39 loc) · 1.17 KB
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
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
* Plugin Name: Mailrelay
* Plugin URI: https://mailrelay.com
* Description: Synchronize your WordPress users with Mailrelay
* Version: 3.0.1
* Author: Mailrelay
* Text Domain: Mailrelay
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'Access Denied.' );
}
define( 'MAILRELAY_PLUGIN_VERSION', '3.0.1' );
if ( ! defined( 'MAILRELAY_BASE_DOMAIN' ) ) {
define( 'MAILRELAY_BASE_DOMAIN', 'ipzmarketing.com' );
}
require_once __DIR__ . '/libraries/action-scheduler/action-scheduler.php';
require_once __DIR__ . '/inc/common.php';
require_once __DIR__ . '/inc/block-widgets.php';
require_once __DIR__ . '/inc/global-hooks.php';
if ( function_exists( 'is_admin' ) && is_admin() ) {
require_once __DIR__ . '/inc/class-mailrelay-pages.php';
$mailrelay_pages = new MailrelayPages();
$mailrelay_pages->setup_hooks();
}
add_action(
'wpforms_loaded',
function () {
require_once __DIR__ . '/inc/class-mailrelay-wpforms.php';
}
);
require_once __DIR__ . '/inc/class-mailrelay-woocommerce.php';
add_action(
'plugins_loaded',
function () {
MailrelayWoocommerce::instance()->setup_hooks();
}
);