WordPress action hook
woocommerce_after_order_details
Defined by WooCommerce and fired by 21 plugins in total, running on 7.2M+ sites between them.
“Action hook fired after the order details.”
How to use woocommerce_after_order_details
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_after_order_details', function( $order ) {
// Your code runs here.
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
21 plugins that fire woocommerce_after_order_details
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_order_details', $order )templates/order/order-details-fulfillments.php:210 -
CartFlows200,000+ installs
do_action( 'woocommerce_after_order_details', $order )woocommerce/template/order/order-details.php:134 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
do_action( 'woocommerce_after_order_details', $order )includes/wc-templates/order/order-details.php:158 -
Deposits & Partial Payments for WooCommerce5,000+ installs
do_action( 'woocommerce_after_order_details', $order )templates/order/awcdp-order-details.php:114 -
Ultimate Store Kit3,000+ installs
do_action( 'woocommerce_after_order_details', $order )modules/page-order/widgets/page-order.php:1132 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
do_action( 'woocommerce_after_order_details', $order )blocks/thankyou-order-details/screen.php:160 -
Thanko Thank You Page Customizer for WooCommerce3,000+ installs
do_action( 'woocommerce_after_order_details', $order )frontend/frontend.php:2149 -
MarketKing700+ installs
do_action( 'woocommerce_after_order_details', $order )public/templates/order-details.php:180 -
ShopPress600+ installs
do_action( 'woocommerce_after_order_details', $order )public/templates/thankyou/order-details.php:111 -
Jim Soft Swiss QR Invoice500+ installs
do_action( 'woocommerce_after_order_details', $order )wc-templates/order/order-details.php:174 -
Shopready100+ installs
do_action( 'woocommerce_after_order_details', $order )src/extension/templates/tpl/order/order-details.php:114 -
ShopMaker90+ installs
do_action( 'woocommerce_after_order_details', $order )templates/widgets/order/order-details.php:119 -
fluXtore Funnel Builder50+ installs
do_action( 'woocommerce_after_order_details', $order )woocommerce/order/order-details.php:110 -
StoreSuite20+ installs
do_action( 'woocommerce_after_order_details', $order )templates/orders/order-details.php:169 -
DEPART20+ installs
do_action( 'woocommerce_after_order_details', $order )templates/order/partial-order-details.php:88 -
Kanban for WooCommerce10+ installs
do_action( 'woocommerce_after_order_details', $order )src/Backend.php:1380 -
Cresta Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_order_details', $order )inc/blocks/blocks-thankyou.php:406 -
PDFDraft PDF Invoices for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_order_details', $order )templates/woocommerce/order/order-details.php:156 -
IPS Cart&Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_order_details', $order )includes/classes/Front/Thankyou/ThankyouSlotRenderer.php:44 -
Order Distribution for WooFewer than 10 installs
do_action( 'woocommerce_after_order_details', $order )templates/assigned-order-details.php:116 -
ShopCuratorFewer than 10 installs
do_action( 'woocommerce_after_order_details', $order )src/Account/Orders.php:772
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.