Created
May 16, 2018 07:50
-
-
Save patrickposner/fe5107086cb5deeef4a657916faeecee to your computer and use it in GitHub Desktop.
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
add_filter( 'wp_wc_invoice_pdf_after_billing_address', 'woocommerce_email_order_meta_add_email_to_invoice_pdf' ); | |
function woocommerce_email_order_meta_add_email_to_invoice_pdf($order) { | |
if ( method_exists( $order, 'get_billing_email' ) ) { | |
$customer_email = $order->get_billing_email(); | |
if ( ! empty( $customer_email ) ) { | |
echo "<br>" . $customer_email; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment