daily pastebin goal
42%
SHARE
TWEET

WooCommerce - Add content to email headers

lorro Jul 27th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2. // WooCommerce - Add content to email headers
  3. // Email templates are not affected by this method
  4. add_action( 'woocommerce_email_header', 'custom_email_header', 20, 2 );
  5. function custom_email_header( $email_heading, $email ) {
  6.   $order = $email->object;
  7.   print 'Order No. '.$order->get_order_number( ); // example
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top