woocommerce_email_header
Hook for the woocommerce_email_header.
Usage
add_action( 'woocommerce_email_header', 'wp_kama_woocommerce_email_header_action', 10, 2 ); /** * Function for `woocommerce_email_header` action-hook. * * @param $email_heading * @param $email * * @return void */ function wp_kama_woocommerce_email_header_action( $email_heading, $email ){ // action... }
- $email_heading
- -
- -
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
woocommerce_email_header
woocommerce/templates/emails/customer-failed-order.php 28
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/includes/react-admin/emails/html-merchant-notification.php 13
do_action( 'woocommerce_email_header', $email_heading, $email );
woocommerce/includes/react-admin/emails/html-admin-report-export-download.php 13
do_action( 'woocommerce_email_header', $email_heading, $email );
woocommerce/includes/class-wc-emails.php 355
do_action( 'woocommerce_email_header', $email_heading, null );
woocommerce/templates/emails/admin-cancelled-order.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-completed-order.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-new-account.php 20
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-reset-password.php 24
<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-invoice.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-refunded-order.php 23
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-note.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-processing-order.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-on-hold-order.php 23
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-new-account-blocks.php 20
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/admin-new-order.php 23
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/admin-failed-order.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
Where the hook is used in WooCommerce
woocommerce/includes/class-wc-emails.php 197
add_action( 'woocommerce_email_header', array( $this, 'email_header' ) );