-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwc-bacs-paybysquare.php
42 lines (38 loc) · 1.22 KB
/
wc-bacs-paybysquare.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
<?php
/**
* This file is part of WordPress plugin: PAY by square for WooCommerce
*
* @package Webikon\Woocommerce_Plugin\WC_BACS_Paybysquare
* @author Webikon (Matej Kravjar) <[email protected]>
* @copyright 2017 Webikon & Matej Kravjar
* @license GPLv2+
*
* Plugin Name: PAY by square for WooCommerce
* Description: Adds a payment QR code on summary page of direct bank transfer
* Version: 2.0.0
* Author: Webikon (Matej Kravjar)
* Author URI: https://webikon.sk
* License: GPLv2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wc-bacs-paybysquare
* Domain Path: /languages
* WC requires at least: 3.0
* WC tested up to: 8.4.0
*/
namespace Webikon\Woocommerce_Plugin\WC_BACS_Paybysquare;
// protect against direct access.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// declare compatibility with High-Performace Order Storage (HPOS).
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 );
}
}
);
require __DIR__ . '/src/class-logger.php';
require __DIR__ . '/src/class-plugin.php';
Plugin::run( __FILE__ );