Last active
August 14, 2020 15:14
-
-
Save RiaanKnoetze/2cd23e4eea3929cab44626cf1fe89b44 to your computer and use it in GitHub Desktop.
Add China country support in WooCommerce Stripe where offices are located in Hong Kong
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wc_stripe_supported_countries', 'wc_stripe_CN_support', 10, 1 ); | |
function wc_stripe_CN_support( $supported_countries ) { | |
$supported_countries = array( | |
'CN', // China | |
); | |
return $supported_countries; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment