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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_after_order_details', $order ) templates/order/order-details-fulfillments.php:210
  2. CartFlows icon CartFlows200,000+ installs do_action( 'woocommerce_after_order_details', $order ) woocommerce/template/order/order-details.php:134
  3. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs do_action( 'woocommerce_after_order_details', $order ) includes/wc-templates/order/order-details.php:158
  4. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce5,000+ installs do_action( 'woocommerce_after_order_details', $order ) templates/order/awcdp-order-details.php:114
  5. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs do_action( 'woocommerce_after_order_details', $order ) modules/page-order/widgets/page-order.php:1132
  6. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_after_order_details', $order ) blocks/thankyou-order-details/screen.php:160
  7. Thanko Thank You Page Customizer for WooCommerce icon Thanko Thank You Page Customizer for WooCommerce3,000+ installs do_action( 'woocommerce_after_order_details', $order ) frontend/frontend.php:2149
  8. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_after_order_details', $order ) public/templates/order-details.php:180
  9. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_after_order_details', $order ) public/templates/thankyou/order-details.php:111
  10. Jim Soft Swiss QR Invoice icon Jim Soft Swiss QR Invoice500+ installs do_action( 'woocommerce_after_order_details', $order ) wc-templates/order/order-details.php:174
  11. Shopready icon Shopready100+ installs do_action( 'woocommerce_after_order_details', $order ) src/extension/templates/tpl/order/order-details.php:114
  12. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_after_order_details', $order ) templates/widgets/order/order-details.php:119
  13. fluXtore Funnel Builder icon fluXtore Funnel Builder50+ installs do_action( 'woocommerce_after_order_details', $order ) woocommerce/order/order-details.php:110
  14. StoreSuite icon StoreSuite20+ installs do_action( 'woocommerce_after_order_details', $order ) templates/orders/order-details.php:169
  15. DEPART icon DEPART20+ installs do_action( 'woocommerce_after_order_details', $order ) templates/order/partial-order-details.php:88
  16. Kanban for WooCommerce icon Kanban for WooCommerce10+ installs do_action( 'woocommerce_after_order_details', $order ) src/Backend.php:1380
  17. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_order_details', $order ) inc/blocks/blocks-thankyou.php:406
  18. PDFDraft PDF Invoices for WooCommerce icon PDFDraft PDF Invoices for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_order_details', $order ) templates/woocommerce/order/order-details.php:156
  19. IPS Cart&Checkout for WooCommerce icon IPS Cart&Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_order_details', $order ) includes/classes/Front/Thankyou/ThankyouSlotRenderer.php:44
  20. Order Distribution for Woo icon Order Distribution for WooFewer than 10 installs do_action( 'woocommerce_after_order_details', $order ) templates/assigned-order-details.php:116
  21. ShopCurator icon 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.