Skip to content

Instantly share code, notes, and snippets.

@tommyshellberg
Created April 15, 2019 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommyshellberg/6e1d1ddae944f3cbdd4b0aad87844b13 to your computer and use it in GitHub Desktop.
Save tommyshellberg/6e1d1ddae944f3cbdd4b0aad87844b13 to your computer and use it in GitHub Desktop.
WooCommerce Stripe gateway - Add Puerto Rico to allowable Stripe countries
<?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