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

Hook for woocommerce_email_customer_details.

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

add_action( 'woocommerce_email_customer_details', 'wp_kama_woocommerce_email_customer_details_action', 10, 4 );

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

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

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

В файле: /templates/emails/customer-invoice.php
woocommerce_email_customer_details
woocommerce/templates/emails/customer-invoice.php 84
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-new-order.php 46
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-completed-order.php 49
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-on-hold-order.php 48
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-new-order.php 46
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-completed-order.php 48
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-on-hold-order.php 47
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-note.php 55
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-processing-order.php 48
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-refunded-order.php 53
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-invoice.php 67
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-failed-order.php 46
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-cancelled-order.php 46
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-note.php 54
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-processing-order.php 51
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-refunded-order.php 58
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-failed-order.php 49
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-cancelled-order.php 48
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );

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

woocommerce/includes/class-wc-emails.php 198
add_action( 'woocommerce_email_customer_details', array( $this, 'customer_details' ), 10, 3 );
woocommerce/includes/class-wc-emails.php 199
add_action( 'woocommerce_email_customer_details', array( $this, 'email_addresses' ), 20, 3 );