Merge pull request #8962 from woothemes/simplify-ireland-support
Adds a filter on the supported countries for Simplify Commerce.
This commit is contained in:
commit
58df3604f8
|
@ -73,7 +73,7 @@ class WC_Payment_Gateways {
|
|||
'WC_Gateway_Paypal',
|
||||
);
|
||||
|
||||
$simplify_countries = array( 'US', 'IE' ); // USA and Ireland
|
||||
$simplify_countries = (array) apply_filters( 'woocommerce_gateway_simplify_commerce_supported_countries', array( 'US', 'IE' ) );
|
||||
|
||||
if ( in_array( WC()->countries->get_base_country(), $simplify_countries ) ) {
|
||||
if ( class_exists( 'WC_Subscriptions_Order' ) || class_exists( 'WC_Pre_Orders_Order' ) ) {
|
||||
|
|
Loading…
Reference in New Issue