| 1 |
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 |
/** |
| 3 |
* Plugin Name: Mailrelay |
| 4 |
* Plugin URI: https://mailrelay.com |
| 5 |
* Description: Synchronize your WordPress users with Mailrelay |
| 6 |
* Version: 2.0.2 |
| 7 |
* Author: Mailrelay |
| 8 |
* Text Domain: Mailrelay |
| 9 |
* Domain Path: /languages |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
die( 'Access Denied.' ); |
| 14 |
} |
| 15 |
|
| 16 |
define( 'MAILRELAY_PLUGIN_VERSION', '2.0.2' ); |
| 17 |
|
| 18 |
require_once __DIR__ . '/inc/common.php'; |
| 19 |
require_once __DIR__ . '/inc/global-hooks.php'; |
| 20 |
|
| 21 |
if ( function_exists( 'is_admin' ) && is_admin() ) { |
| 22 |
|
| 23 |
require_once __DIR__ . '/inc/class-mailrelaypages.php'; |
| 24 |
|
| 25 |
$mailrelay_pages = new MailrelayPages(); |
| 26 |
$mailrelay_pages->setup_hooks(); |
| 27 |
} |
| 28 |
|