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 string $email_heading The email heading.
* @param WC_Email $email The email object.
*
* @return void
*/
function wp_kama_woocommerce_email_header_action( $email_heading, $email ){
// action...
}
- $email_heading(string)
- The email heading.
- $email(WC_Email)
- The email object.
Changelog
| Since 2.5.0 | Introduced. |
Where the hook is called
woocommerce_email_header
woocommerce/templates/emails/customer-fulfillment-deleted.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/admin-failed-order.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-note.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-reset-password.php 28
<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-refunded-order.php 27
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/admin-cancelled-order.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-stock-notification-verified.php 30
do_action( 'woocommerce_email_header', $email_heading, $email );
woocommerce/templates/emails/customer-completed-order.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/admin-new-order.php 27
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-stock-notification.php 30
do_action( 'woocommerce_email_header', $email_heading, $email );
woocommerce/templates/emails/customer-fulfillment-updated.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-on-hold-order.php 27
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-new-account.php 31
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-fulfillment-created.php 29
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-stock-notification-verify.php 30
do_action( 'woocommerce_email_header', $email_heading, $email );
woocommerce/templates/emails/customer-invoice.php 32
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-cancelled-order.php 32
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-failed-order.php 32
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-processing-order.php 29
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 427
do_action( 'woocommerce_email_header', $email_heading, null );
Where the hook is used in WooCommerce
woocommerce/includes/class-wc-emails.php 234
add_action( 'woocommerce_email_header', array( $this, 'email_header' ) );