Skip to content

Instantly share code, notes, and snippets.

@webdados
Created June 30, 2021 12:51
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 webdados/95458c83a272d4232ea3307d5c94d368 to your computer and use it in GitHub Desktop.
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
<?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