Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created Jan 17, 2017
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