-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathledyer-checkout-for-woocommerce.php
63 lines (56 loc) · 2.11 KB
/
ledyer-checkout-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Plugin Name: Ledyer Checkout for WooCommerce
* Plugin URI: https://github.com/ledyer/ledyer-checkout-for-woocommerce
* Description: Ledyer Checkout payment gateway for WooCommerce.
* Author: Ledyer
* Author URI: https://www.ledyer.com/
* Version: 1.10.1
* Text Domain: ledyer-checkout-for-woocommerce
* Domain Path: /languages
*
* WC requires at least: 3.2.0
* WC tested up to: 9.3.3
*
* Copyright (c) 2017-2024 Ledyer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
use Ledyer\Ledyer_Checkout_For_WooCommerce;
\defined( 'ABSPATH' ) || die();
require_once __DIR__ . '/classes/class-ledyer-singleton.php';
require_once __DIR__ . '/classes/class-ledyer-main.php';
/**
* Required minimums and constants
*/
\define( 'LCO_WC_VERSION', Ledyer_Checkout_For_WooCommerce::VERSION );
\define( 'LCO_WC_MIN_PHP_VER', '7.4.0' );
\define( 'LCO_WC_MIN_WC_VER', '5.6.0' );
\define( 'LCO_WC_MAIN_FILE', __FILE__ );
\define( 'LCO_WC_PLUGIN_NAME', dirname( plugin_basename( LCO_WC_MAIN_FILE ) ) );
\define( 'LCO_WC_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
\define( 'LCO_WC_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
// Declare 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 );
}
}
);
function ledyer() {
return Ledyer_Checkout_For_WooCommerce::instance();
}
ledyer();