forked from DanielBakovic/license-manager-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlicense-manager-for-woocommerce.php
49 lines (42 loc) · 1.27 KB
/
license-manager-for-woocommerce.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
/**
* Plugin Name: License Manager for WooCommerce
* Plugin URI: https://www.licensemanager.at/
* Description: Easily sell and manage software license keys through your WooCommerce shop.
* Version: 2.2.1
* Author: Dražen Bebić
* Author URI: https://www.licensemanager.at/
* Requires at least: 4.7
* Tested up to: 5.5
* Requires PHP: 5.6
* WC requires at least: 2.7
* WC tested up to: 4.5
*/
namespace LicenseManagerForWooCommerce;
defined('ABSPATH') || exit;
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/functions/lmfwc-core-functions.php';
require_once __DIR__ . '/functions/lmfwc-license-functions.php';
require_once __DIR__ . '/functions/lmfwc-meta-functions.php';
// Define LMFWC_PLUGIN_FILE.
if (!defined('LMFWC_PLUGIN_FILE')) {
define('LMFWC_PLUGIN_FILE', __FILE__);
define('LMFWC_PLUGIN_DIR', __DIR__);
}
// Define LMFWC_PLUGIN_URL.
if (!defined('LMFWC_PLUGIN_URL')) {
define('LMFWC_PLUGIN_URL', plugins_url('', __FILE__) . '/');
}
/**
* Main instance of LicenseManagerForWooCommerce.
*
* Returns the main instance of SN to prevent the need to use globals.
*
* @return Main
*/
function lmfwc()
{
return Main::instance();
}
// Global for backwards compatibility.
$GLOBALS['license-manager-for-woocommerce'] = lmfwc();