PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.0.2
Pay with Vipps and MobilePay for WooCommerce v6.0.2
6.2.3 6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 5.4.1 5.4.0 All 185 releases
woo-vipps / recurring / includes / wc-vipps-recurring-compatibility.php

wc-vipps-recurring-compatibility.php in Pay with Vipps and MobilePay for WooCommerce 6.0.2, at recurring/includes/wc-vipps-recurring-compatibility.php

26 lines 692 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 add_action( 'plugins_loaded', function () {
6 if ( ! get_option( WC_Vipps_Recurring_Helper::OPTION_CONFIGURED, false ) ) {
7 return;
8 }
9
10 require_once __DIR__ . '/compat/wc-vipps-recurring-all-products-support.php';
11 WC_Vipps_Recurring_All_Products_Support::init();
12
13 if ( defined( 'KCO_WC_VERSION' )
14 && class_exists( 'KCO' )
15 && version_compare( KCO_WC_VERSION, '2.0.0', '>=' )
16 && ! has_filter( 'kco_wc_api_request_args', [
17 WC_Vipps_Recurring_Kc_Support::class,
18 'kcoepm_create_vipps_recurring_order'
19 ] ) ) {
20
21 require_once __DIR__ . '/compat/wc-vipps-recurring-kc-support.php';
22 WC_Vipps_Recurring_Kc_Support::init();
23 }
24 } );
25
26