WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

woocommerce_email_order_details хук-событие . WC 2.5.0

Hook for the woocommerce_email_order_details.

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

add_action( 'woocommerce_email_order_details', 'action_function_name_6688', 10, 4 );
function action_function_name_6688( $order, $sent_to_admin, $plain_text, $email ){
	// action...
}
$order
-
$sent_to_admin
-
$plain_text
-
$email
-

Список изменений

С версии 2.5.0 Введена.

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

В файле: /templates/emails/customer-invoice.php
woocommerce_email_order_details
woocommerce/templates/emails/customer-invoice.php 69
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-completed-order.php 39
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-refunded-order.php 49
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-on-hold-order.php 39
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-failed-order.php 38
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-processing-order.php 40
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-note.php 43
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-new-order.php 37
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-completed-order.php 37
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-refunded-order.php 41
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-on-hold-order.php 36
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-failed-order.php 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-processing-order.php 37
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-note.php 45
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-invoice.php 49
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-new-order.php 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-cancelled-order.php 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-cancelled-order.php 38
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

Где используется хук (в ядре WC)

includes/class-wc-emails.php 190
add_action( 'woocommerce_email_order_details', array( $this, 'order_downloads' ), 10, 4 );
includes/class-wc-emails.php 191
add_action( 'woocommerce_email_order_details', array( $this, 'order_details' ), 10, 4 );
includes/class-wc-structured-data.php 33
add_action( 'woocommerce_email_order_details', array( $this, 'generate_order_data' ), 20, 3 );
includes/class-wc-structured-data.php 36
add_action( 'woocommerce_email_order_details', array( $this, 'output_email_structured_data' ), 30, 3 );