Created
April 15, 2019 15:22
-
-
Save tommyshellberg/6e1d1ddae944f3cbdd4b0aad87844b13 to your computer and use it in GitHub Desktop.
WooCommerce Stripe gateway - Add Puerto Rico to allowable Stripe countries
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_add_puerto_rico'); | |
function wc_stripe_add_puerto_rico($countries) { | |
$countries[] = 'PR'; | |
return $countries; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment