This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lw-woo-gdpr-user-optins.php
63 lines (50 loc) · 1.99 KB
/
lw-woo-gdpr-user-optins.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
<?php
/**
* Plugin Name: WooCommerce GDPR User Opt-Ins
* Plugin URI: https://github.com/liquidweb/lw-woo-gdpr-user-optins
* Description: A toolset to allow WooCommerce store owners to create and manage user opt-in data.
* Version: 0.1.0
* Author: Liquid Web
* Author URI: https://www.liquidweb.com
* Text Domain: lw-woo-gdpr-user-optins
* Domain Path: /languages
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*
* @package WooGDPRUserOptIns
*/
// Declare our namespace.
namespace LiquidWeb\WooGDPRUserOptIns;
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
// Define our version.
define( __NAMESPACE__ . '\VERS', '0.1.0' );
// Define our file base.
define( __NAMESPACE__ . '\BASE', plugin_basename( __FILE__ ) );
// Plugin Folder URL.
define( __NAMESPACE__ . '\URL', plugin_dir_url( __FILE__ ) );
// Plugin root file.
define( __NAMESPACE__ . '\FILE', __FILE__ );
// Options database name.
define( __NAMESPACE__ . '\OPTION_NAME', 'lw_woo_gdpr_optins_fields' );
// User meta key prefix.
define( __NAMESPACE__ . '\META_PREFIX', 'lw_woo_gdrp_user_optin_' );
// Set our assets directory constant.
define( __NAMESPACE__ . '\ASSETS_URL', URL . 'assets' );
// Set our front menu endpoint constant.
define( __NAMESPACE__ . '\FRONT_VAR', 'privacy-data' );
// Set our tab base slug constant.
define( __NAMESPACE__ . '\TAB_BASE', 'gdpr_user_optins' );
// Go and load our files.
require_once __DIR__ . '/includes/helpers.php';
require_once __DIR__ . '/includes/activate.php';
require_once __DIR__ . '/includes/deactivate.php';
require_once __DIR__ . '/includes/uninstall.php';
// Load the files with ongoing functionality.
require_once __DIR__ . '/includes/query-mods.php';
require_once __DIR__ . '/includes/layouts.php';
require_once __DIR__ . '/includes/account.php';
require_once __DIR__ . '/includes/checkout.php';
require_once __DIR__ . '/includes/admin.php';
require_once __DIR__ . '/includes/settings-tab.php';
require_once __DIR__ . '/includes/ajax-actions.php';