Created
June 30, 2021 12:51
-
-
Save webdados/95458c83a272d4232ea3307d5c94d368 to your computer and use it in GitHub Desktop.
Use billing country instead of shipping country for OSS in Invoicing with InvoiceXpress for WooCommerce
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( 'invoicexpress_woocommerce_oss_order_country', function( $country, $order_object ) { | |
return $order_object->get_billing_country(); | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment