-
Notifications
You must be signed in to change notification settings - Fork 0
/
brevwoo.php
executable file
·71 lines (64 loc) · 1.64 KB
/
brevwoo.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
66
67
68
69
70
71
<?php
/**
* Plugin Name: BrevWoo
* Plugin URI: http://github.com/AlecRust/brevwoo
* Description: Add WooCommerce customers to Brevo the simple way.
* Version: 1.0.10
* Author: Alec Rust
* Author URI: https://www.alecrust.com/
* Developer: Alec Rust
* Developer URI: https://www.alecrust.com/
* Text Domain: brevwoo
*
* WC requires at least: 3.0.0
* WC tested up to: 9.3.1
*
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* @package BrevWoo
* @link https://github.com/AlecRust/brevwoo
*/
// Abort if this file is called directly.
if ( ! defined( 'WPINC' ) ) {
die();
}
/**
* Load Composer entry point.
*/
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
/**
* Plugin version.
*/
define( 'BREVWOO_VERSION', '1.0.10' );
/**
* Load core plugin class defining all hooks.
*/
require_once plugin_dir_path( __FILE__ ) . 'includes/class-brevwoo.php';
/**
* Declare plugin compatibility with WC HPOS.
* https://github.com/woocommerce/woocommerce/wiki/High-Performance-Order-Storage-Upgrade-Recipe-Book
*
* @SuppressWarnings(PHPMD.StaticAccess)
*
* @return void
*/
add_action(
'before_woocommerce_init',
function () {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
}
);
/**
* Begin plugin execution.
*
* @return void
* @SuppressWarnings(PHPMD.MissingImport)
*/
function brevwoo_init() {
$plugin = new BrevWoo();
$plugin->init();
}
brevwoo_init();