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_408', 10, 4 );
function action_function_name_408( $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 38
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-refunded-order.php 47
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-on-hold-order.php 37
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 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-completed-order.php 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-refunded-order.php 40
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-on-hold-order.php 34
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-failed-order.php 33
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-processing-order.php 35
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-note.php 42
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-invoice.php 50
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-new-order.php 33
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/admin-cancelled-order.php 33
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/admin-cancelled-order.php 37
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

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

woocommerce/templates/emails/customer-invoice.php 195
add_action( 'woocommerce_email_order_details', array( $this, 'order_downloads' ), 10, 4 );
woocommerce/templates/emails/customer-invoice.php 196
add_action( 'woocommerce_email_order_details', array( $this, 'order_details' ), 10, 4 );
woocommerce/templates/emails/customer-invoice.php 32
add_action( 'woocommerce_email_order_details', array( $this, 'generate_order_data' ), 20, 3 );
woocommerce/templates/emails/customer-invoice.php 35
add_action( 'woocommerce_email_order_details', array( $this, 'output_email_structured_data' ), 30, 3 );