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

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

add_action( 'woocommerce_email_before_order_table', 'wp_kama_woocommerce_email_before_order_table_action', 10, 4 );

/**
 * Function for `woocommerce_email_before_order_table` action-hook.
 * 
 * @param  $order         
 * @param  $sent_to_admin 
 * @param  $plain_text    
 * @param  $email         
 *
 * @return void
 */
function wp_kama_woocommerce_email_before_order_table_action( $order, $sent_to_admin, $plain_text, $email ){

	// action...
}
$order
-
$sent_to_admin
-
$plain_text
-
$email
-

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

В файле: /templates/emails/plain/email-order-details.php
woocommerce_email_before_order_table
woocommerce/templates/emails/plain/email-order-details.php 20
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/email-order-details.php 22
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>

Где используется хук в WooCommerce

woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 86
add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 3 );
woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php 55
add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 3 );
woocommerce/includes/gateways/cod/class-wc-gateway-cod.php 71
add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 3 );