Created
August 22, 2017 14:41
-
-
Save swoboda/fdb19e82a550ed81c69d5876335065c5 to your computer and use it in GitHub Desktop.
vat_number_emails_en.php
This file contains hidden or 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 | |
// Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_filter( 'woocommerce_email_order_meta_keys', 'wpdesk_vat_number_display_email' ); | |
/** | |
* VAT Number in emails | |
*/ | |
function wpdesk_vat_number_display_email( $keys ) { | |
$keys['VAT Number'] = '_vat_number'; | |
return $keys; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment