-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmoney-crypto-for-woocommerce.php
49 lines (40 loc) · 1.53 KB
/
xmoney-crypto-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: xMoney for WooCommerce
Description: Take cryptocurrency payments in your WooCommerce store using xMoney.
Author: xMoney team
Version: 1.0.17
Requires at least: 5.0
Tested up to: 5.7
WC requires at least: 3.0
WC tested up to: 5.0.0
Text Domain: woocommerce-gateway-utrust
Author URI: https://xmoney.com
License: GPL-3.0
*/
if (!defined('ABSPATH')) {
exit(); // Exit if accessed directly
}
// Autoload vendor packages
require_once dirname(__FILE__) . '/vendor/autoload.php';
// Autoload required files
require_once dirname(__FILE__) . '/includes/utrust-loader.php';
define('UT_PLUGIN_FILE', __FILE__);
define('UT_PLUGIN_BASENAME', plugin_basename(__FILE__));
define('UT_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('UT_PLUGIN_URL', plugin_dir_url(__FILE__));
define('WC_UTRUST_VERSION', 1.0);
UT_Start::get_instance();
// Adds plugin action links
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'add_plugin_actions_links');
function add_plugin_actions_links($links)
{
$settings_link = array('<a href="admin.php?page=wc-settings&tab=checkout§ion=utrust_gateway">' . __('Settings', 'woocommerce-gateway-utrust') . '</a>');
return array_merge($settings_link, $links);
}
//require_once plugin_dir_path(__FILE__) . 'includes/compatibility-hpos.php';
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);
}
});