woocommerce_email_header хук-событиеWC 1.0

Executes the e-mail header.

Использование

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
-
$email
-

Где вызывается хук

В файле: /templates/emails/customer-invoice.php
woocommerce_email_header
woocommerce/templates/emails/customer-invoice.php 27
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/packages/woocommerce-blocks/templates/emails/customer-new-account-blocks.php 14
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/customer-reset-password.php 24
<?php 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-on-hold-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-new-account.php 20
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-refunded-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 ); ?>
woocommerce/templates/emails/admin-cancelled-order.php 25
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
woocommerce/includes/class-wc-emails.php 334
do_action( 'woocommerce_email_header', $email_heading, null );
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

woocommerce/includes/class-wc-emails.php 193
add_action( 'woocommerce_email_header', array( $this, 'email_header' ) );