Skip to content

Instantly share code, notes, and snippets.

@RiaanKnoetze
Last active August 14, 2020 15:14
Show Gist options
  • Save RiaanKnoetze/2cd23e4eea3929cab44626cf1fe89b44 to your computer and use it in GitHub Desktop.
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
<?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