WordPress action hook

woocommerce_order_details_before_order_table_items

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

How to use woocommerce_order_details_before_order_table_items

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_order_details_before_order_table_items', 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.

25 plugins that fire woocommerce_order_details_before_order_table_items

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_order_details_before_order_table_items', $order ) templates/order/order-details-fulfillments.php:79
  2. CartFlows icon CartFlows200,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) woocommerce/template/order/order-details.php:68
  3. Thank You Page for WooCommerce icon Thank You Page for WooCommerce10,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) src/Front.php:157
  4. SellKit icon SellKit7,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) includes/elementor/modules/order-cart-details/templates/order-details.php:57
  5. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) includes/wc-templates/order/order-details.php:76
  6. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce5,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/order/awcdp-order-details.php:46
  7. WowStore icon WowStore4,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) blocks/woo/thank_you/order_details/Template.php:100
  8. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) modules/page-order/widgets/page-order.php:1077
  9. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) blocks/thankyou-order-details/screen.php:95
  10. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) public/templates/order-details.php:108
  11. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) public/templates/thankyou/order-details.php:66
  12. Jim Soft Swiss QR Invoice icon Jim Soft Swiss QR Invoice500+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) wc-templates/order/order-details.php:117
  13. Shopready icon Shopready100+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) src/extension/elewidgets/widgets/thankyou/template-parts/order_details/woo-ready-thankyou-order-details-one.php:33
  14. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/widgets/order/order-details.php:58
  15. fluXtore Funnel Builder icon fluXtore Funnel Builder50+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) woocommerce/order/order-details.php:58
  16. DEPART icon DEPART20+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/order/partial-order-details.php:45
  17. Emissary for Woocommerce icon Emissary for Woocommerce10+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) public/templates/order-details.php:38
  18. Kanban for WooCommerce icon Kanban for WooCommerce10+ installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) src/Backend.php:1326
  19. IPS Cart&Checkout for WooCommerce icon IPS Cart&Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) includes/classes/Front/Thankyou/ThankyouSlotRenderer.php:41
  20. Enapps ERP B2B Integration for WooCommerce icon Enapps ERP B2B Integration for WooCommerceFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) enapps-wc-templates/myaccount/order-details.php:31
  21. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) inc/blocks/blocks-thankyou.php:343
  22. Order Distribution for Woo icon Order Distribution for WooFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/assigned-order-details.php:41
  23. PDFDraft PDF Invoices for WooCommerce icon PDFDraft PDF Invoices for WooCommerceFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/woocommerce/order/order-details.php:65
  24. ShopCurator icon ShopCuratorFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) src/Account/Orders.php:715
  25. ithan devvn checkout for woocommerce icon ithan devvn checkout for woocommerceFewer than 10 installs do_action( 'woocommerce_order_details_before_order_table_items', $order ) templates/order/order-details.php:57

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.