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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email )templates/emails/email-order-details.php:225 -
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 -
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 -
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 -
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 -
Mailonix20,000+ installs
do_action( 'woocommerce_email_after_order_table', $this->order, false, false, '' )includes/email-render.php:931 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
WC Vendors3,000+ installs
do_action( 'woocommerce_email_after_order_table', $order, true )templates/emails/notify-vendor-shipped.php:84 -
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 -
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 -
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 -
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 -
MarketKing700+ installs
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email )public/templates/email-order-details.php:144 -
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 -
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 -
Email Customizer for WooCommerce200+ installs
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email )templates/order_items.php:155 -
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 -
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 -
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 -
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 -
OpenPOS Lite60+ installs
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email )templates/emails/email-order-details.php:90 -
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 -
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 -
Virfice40+ installs
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email )src/Utils.php:679 -
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 -
Virtuaria PagBank Split20+ installs
do_action( 'woocommerce_email_after_order_table', $order, true, false, $email )templates/seller-itens.php:100 -
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 -
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 -
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 -
Email Design StudioFewer than 10 installs
do_action( 'woocommerce_email_after_order_table', $order, true, false )sm-fetch-template-details.php:657 -
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 -
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 -
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.