WordPress action hook

woocommerce_email_after_order_table

Defined by WooCommerce and fired by 40 plugins in total, running on 7.9M+ sites between them.

“Action hook to add custom content after order details in email.”

How to use woocommerce_email_after_order_table

It's an action: your callback runs at that point and receives 4 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_email_after_order_table', function( $order, $sent_to_admin, $plain_text, $email ) {
	// Your code runs here.
}, 10, 4 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

40 plugins that fire woocommerce_email_after_order_table

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/email-order-details.php:225
  2. WooCommerce Stripe Payment Gateway icon WooCommerce Stripe Payment Gateway700,000+ installs do_action( 'woocommerce_email_after_order_table', $order, false, $plain_text, $email ) templates/emails/failed-preorder-authentication.php:47
  3. Kadence WooCommerce Email Designer icon Kadence WooCommerce Email Designer90,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/woo/emails/email-order-details.php:345
  4. Dokan: AI Powered WooCommerce Multivendor Marketplace Solution icon Dokan: AI Powered WooCommerce Multivendor Marketplace Solution30,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/plain/vendor-completed-order.php:52
  5. Custom Order Status Manager for WooCommerce icon Custom Order Status Manager for WooCommerce30,000+ installs do_action( 'woocommerce_email_after_order_table', $order, true, false, $email ) templates/emails/admin-order-status-email.php:72
  6. Mailonix icon Mailonix20,000+ installs do_action( 'woocommerce_email_after_order_table', $this->order, false, false, '' ) includes/email-render.php:931
  7. Email Templates Customizer and Designer for WordPress and WooCommerce icon Email Templates Customizer and Designer for WordPress and WooCommerce20,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/woo/emails/email-order-details.php:296
  8. WebToffee eCommerce Marketing Automation icon WebToffee eCommerce Marketing Automation10,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) includes/wt-woo-templates/emails/email-order-details.php:128
  9. NP Quote Request for WooCommerce icon NP Quote Request for WooCommerce8,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) woocommerce/emails/admin-new-rfq.php:102
  10. Email Customizer for WooCommerce icon Email Customizer for WooCommerce8,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) classes/inc/templates/customer_failed_order.php:36
  11. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) includes/wc-templates/emails/email-order-details.php:188
  12. Flexible PDF Invoices for WooCommerce & WordPress icon Flexible PDF Invoices for WooCommerce & WordPress6,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/Helpers/Hooks.php:189
  13. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce5,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ) templates/emails/plain/customer-order-deposit-paid.php:31
  14. Quotes for WooCommerce icon Quotes for WooCommerce4,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/new-quote-request-sent-customer.php:192
  15. WC Vendors icon WC Vendors3,000+ installs do_action( 'woocommerce_email_after_order_table', $order, true ) templates/emails/notify-vendor-shipped.php:84
  16. WP Crowdfunding icon WP Crowdfunding2,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) woocommerce/emails/email-order-details.php:90
  17. Partial Shipment for WooCommerce icon Partial Shipment for WooCommerce1,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) emails/email-partial-order-details.php:92
  18. Order Approval for Woocommerce icon Order Approval for Woocommerce1,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/vendor-new-preorder.php:95
  19. WP Hotel Booking WooCommerce icon WP Hotel Booking WooCommerce1,000+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/woocommerce/emails/email-order-details.php:101
  20. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) public/templates/email-order-details.php:144
  21. PDF Invoice for WooCommerce + Drag and Drop Template Builder icon PDF Invoice for WooCommerce + Drag and Drop Template Builder500+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) woocommerce/templates/emails/email-order-items.php:77
  22. WooBooster Partial COD for WooCommerce icon WooBooster Partial COD for WooCommerce400+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/email-order-details.php:181
  23. Email Customizer for WooCommerce icon Email Customizer for WooCommerce200+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/order_items.php:155
  24. Hotel Booking for WooCommerce icon Hotel Booking for WooCommerce100+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/email-booking-details.php:187
  25. Split Pay icon Split Pay100+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) wc-templates/emails/email-order-details.php:250
  26. SDP Custom Order Status for WooCommerce icon SDP Custom Order Status for WooCommerce100+ installs do_action( 'woocommerce_email_after_order_table', $this->object, in_array ('admin', $this->notificaciones), $this->plain, $this ) src/notificacion.php:277
  27. MonstaManagement presents WebMonsta! icon MonstaManagement presents WebMonsta!70+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/custom-email-order-details.php:72
  28. OpenPOS Lite icon OpenPOS Lite60+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/email-order-details.php:90
  29. Boopis WooCommerce RFQ icon Boopis WooCommerce RFQ50+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/email-quote-details.php:60
  30. Email Templates Customizer for WooCommerce + Drag And Drop Template Builder icon Email Templates Customizer for WooCommerce + Drag And Drop Template Builder40+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) woocommerce/shortcodes.php:591
  31. Virfice icon Virfice40+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) src/Utils.php:679
  32. Marketing 360® Payments for WooCommerce icon Marketing 360® Payments for WooCommerce30+ installs do_action( 'woocommerce_email_after_order_table', $order, false, $plain_text, $email ) templates/emails/failed-preorder-authentication.php:45
  33. Virtuaria PagBank Split icon Virtuaria PagBank Split20+ installs do_action( 'woocommerce_email_after_order_table', $order, true, false, $email ) templates/seller-itens.php:100
  34. Order Status & Tracking Emails for WooCommerce icon Order Status & Tracking Emails for WooCommerce10+ installs do_action( 'woocommerce_email_after_order_table', $order, $oste_sent_to_admin, $oste_plain_text, $email ) templates/emails/plain/customer-custom-order.php:29
  35. CodesWholesale.com for WooCommerce icon CodesWholesale.com for WooCommerce10+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ) templates/emails/customer-completed-order.php:12
  36. Dokan Order Approval icon Dokan Order Approval10+ installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) templates/emails/vendor-new-preorder.php:95
  37. Email Design Studio icon Email Design StudioFewer than 10 installs do_action( 'woocommerce_email_after_order_table', $order, true, false ) sm-fetch-template-details.php:657
  38. Flowbyte Store Booster icon Flowbyte Store BoosterFewer than 10 installs do_action( 'woocommerce_email_after_order_table', null, false, false, $this ) modules/back-in-stock/class-email.php:91
  39. PayRivet Payments with Stripe for WooCommerce icon PayRivet Payments with Stripe for WooCommerceFewer than 10 installs do_action( 'woocommerce_email_after_order_table', $order, false, $plain_text, $email ) templates/emails/failed-preorder-authentication.php:48
  40. AAkron Personalization icon AAkron PersonalizationFewer than 10 installs do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ) admin/woocommerce/emails/email-order-details.php:92

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.