-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdrip.php
49 lines (43 loc) · 1.85 KB
/
drip.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
<?php
/**
* The starting point for the Drip WooCommerce plugin.
*
* @package Drip_Woocommerce
*/
/*
Plugin Name: Drip for WooCommerce
Plugin URI: https://github.com/DripEmail/drip-woocommerce
Description: A WordPress plugin to connect to Drip's WooCommerce integration
Version: 1.1.8
Author: Drip
Author URI: https://www.drip.com/
License: GPLv2
WC requires at least: 3.0
WC tested up to: 9.3.3
*/
defined( 'ABSPATH' ) || die( 'Executing outside of the WordPress context.' );
// Enable HPOS compatibility.
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 );
}
} );
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) {
require_once __DIR__ . '/src/class-drip-woocommerce-settings.php';
require_once __DIR__ . '/src/class-drip-woocommerce-snippet.php';
require_once __DIR__ . '/src/class-drip-woocommerce-cart-events.php';
require_once __DIR__ . '/src/class-drip-woocommerce-view-events.php';
require_once __DIR__ . '/src/class-drip-woocommerce-version.php';
require_once __DIR__ . '/src/class-drip-woocommerce-customer-identify.php';
require_once __DIR__ . '/src/class-drip-woocommerce-checkout-marketing-confirmation.php';
require_once __DIR__ . '/src/class-drip-woocommerce-plugin-view.php';
Drip_Woocommerce_Settings::init();
Drip_Woocommerce_Snippet::init();
Drip_Woocommerce_Cart_Events::init();
Drip_Woocommerce_View_Events::init();
Drip_Woocommerce_Version::init();
Drip_Woocommerce_Customer_Identify::init();
Drip_Woocommerce_Checkout_Marketing_Confirmation::init();
Drip_Woocommerce_Plugin_View::init();
}