woocommerce_pos_email_header action-hookWC 10.0.0

Hook for the woocommerce_email_header.

Usage

add_action( 'woocommerce_pos_email_header', 'wp_kama_woocommerce_pos_email_header_action', 10, 2 );

/**
 * Function for `woocommerce_pos_email_header` action-hook.
 * 
 * @param  $email_heading 
 * @param  $email         
 *
 * @return void
 */
function wp_kama_woocommerce_pos_email_header_action( $email_heading, $email ){

	// action...
}
$email_heading
-
$email
-

Changelog

Since 10.0.0 Introduced.

Where the hook is called

In file: /templates/emails/customer-pos-refunded-order.php
woocommerce_pos_email_header
woocommerce/templates/emails/customer-pos-refunded-order.php 30
do_action( 'woocommerce_pos_email_header', $email_heading, $email ); ?>
woocommerce/templates/emails/customer-pos-completed-order.php 32
do_action( 'woocommerce_pos_email_header', $email_heading, $email ); ?>

Where the hook is used in WooCommerce

woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 124
add_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );
woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php 143
remove_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 234
add_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );
woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php 256
remove_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );