Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Add content to email headers
- // Email templates are not affected by this method
- add_action( 'woocommerce_email_header', 'custom_email_header', 20, 2 );
- function custom_email_header( $email_heading, $email ) {
- $order = $email->object;
- print 'Order No. '.$order->get_order_number( ); // example
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement