/
woo3pdhelpscout.php
45 lines (42 loc) · 1.5 KB
/
woo3pdhelpscout.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
<?php
/**
* Plugin Name: Woo3pd Helpscout Integration
* Plugin URI: http://www.kathyisawesome.com/
* Description: Parse WooCommerce.com support emails into HelpScout conversations
* Version: 1.1.1
* Author: Kathy Darling
* Author URI: http://www.kathyisawesome.com
* License: GPL3
* Text Domain: woo3pdhelpscout
*
* Requires at least: 6.0.0
* Requires PHP: 8.0
*
* Copyright 2024 Kathy Darling
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* 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, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// PHP version check.
if ( ! function_exists( 'phpversion' ) || version_compare( phpversion(), '8.0', '<' ) ) {
require_once 'src/Admin/Notices.php';
add_action( 'admin_notices', array( '\Woo3pdHelpscout\Admin\Notices', 'php_failure_notice' ) );
return false;
}
// Continue with the 53+ loader.
/* @noinspection dirnameCallOnFileConstantInspection */
require_once __DIR__ . '/src/loader.php';