woocommerce_email_header

The WooCommerce woocommerce email header hook.

Description

do_action( 'woocommerce_email_header', (unknown) $email_heading, (unknown) $email ); 

Parameters (2)

0. $email_heading (unknown)
The email heading.
1. $email (unknown)
The email.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_email_header', $email_heading, $email ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_email_header callback 
  2. function action_woocommerce_email_header( $email_heading, $email ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_email_header', 'action_woocommerce_email_header', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_email_header', 'action_woocommerce_email_header', 10, 2 ); 

Defined (12)

The action is defined in the following location(s).

/templates/emails/customer-reset-password.php  
  1. <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-refunded-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-processing-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-on-hold-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-note.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-new-account.php  
  1. <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-invoice.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/customer-completed-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/admin-new-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/admin-failed-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/templates/emails/admin-cancelled-order.php  
  1. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
/includes/class-wc-emails.php  
  1. do_action( 'woocommerce_email_header', $email_heading );