-
Notifications
You must be signed in to change notification settings - Fork 37
/
woo-wallet.php
executable file
·56 lines (49 loc) · 1.35 KB
/
woo-wallet.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
<?php
/**
* Plugin Name: TeraWallet
* Plugin URI: https://standalonetech.com/
* Description: The leading wallet plugin for WooCommerce with partial payment, refunds, cashbacks and what not!
* Version: 1.5.10
* Requires Plugins: woocommerce
* Author: StandaloneTech
* Author URI: https://standalonetech.com/
* Text Domain: woo-wallet
* Domain Path: /languages/
* Requires at least: 6.4
* Tested up to: 6.7
*
* @package StandaleneTech
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define WOO_WALLET_PLUGIN_FILE.
if ( ! defined( 'WOO_WALLET_PLUGIN_FILE' ) ) {
define( 'WOO_WALLET_PLUGIN_FILE', __FILE__ );
}
// Define WOO_WALLET_ABSPATH.
if ( ! defined( 'WOO_WALLET_ABSPATH' ) ) {
define( 'WOO_WALLET_ABSPATH', dirname( WOO_WALLET_PLUGIN_FILE ) . '/' );
}
// Define WOO_WALLET_PLUGIN_VERSION.
if ( ! defined( 'WOO_WALLET_PLUGIN_VERSION' ) ) {
define( 'WOO_WALLET_PLUGIN_VERSION', '1.5.10' );
}
// include dependencies file.
if ( ! class_exists( 'Woo_Wallet_Dependencies' ) ) {
include_once __DIR__ . '/includes/class-woo-wallet-dependencies.php';
}
// Include the main class.
if ( ! class_exists( 'WooWallet' ) ) {
include_once __DIR__ . '/includes/class-woo-wallet.php';
}
/**
* Returns the main instance of WooWallet.
*
* @since 1.1.0
* @return WooWallet
*/
function woo_wallet() {
return WooWallet::instance();
}
$GLOBALS['woo_wallet'] = woo_wallet();