-
-
Save mikejolley/b40347215149791a521a3df1a8ad0c91 to your computer and use it in GitHub Desktop.
Dev blog 2568
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
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