woocommerce_email_order_details

The WooCommerce woocommerce email order details hook.

Description

do_action( 'woocommerce_email_order_details', (unknown) $order, (unknown) $sent_to_admin, (unknown) $plain_text, (unknown) $email ); 

Parameters (4)

0. $order (unknown)
The order.
1. $sent_to_admin (unknown)
The sent to admin.
2. $plain_text (unknown)
The plain text.
3. $email (unknown)
The email.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_email_order_details callback 
  2. function action_woocommerce_email_order_details( $order, $sent_to_admin, $plain_text, $email ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_email_order_details', 'action_woocommerce_email_order_details', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_email_order_details', 'action_woocommerce_email_order_details', 10, 4 ); 

Defined (18)

The action is defined in the following location(s).

/templates/emails/plain/customer-refunded-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/customer-processing-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/customer-on-hold-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/customer-note.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/customer-invoice.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/customer-completed-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/admin-new-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/admin-failed-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/plain/admin-cancelled-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-refunded-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-processing-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-on-hold-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-note.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-invoice.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/customer-completed-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/admin-new-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/admin-failed-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); 
/templates/emails/admin-cancelled-order.php  
  1. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );