Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created January 17, 2017 17:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Dev blog 2568
protected static function is_eu_order( $order ) {
if ( version_compare( WC_VERSION, '2.7', '<' ) ) {
return in_array( $order->billing_country, WC_EU_VAT_Number::get_eu_countries() );
} else {
return in_array( $order->get_billing_country(), WC_EU_VAT_Number::get_eu_countries() );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment