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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )templates/order/order-details-fulfillments.php:79 -
CartFlows200,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )woocommerce/template/order/order-details.php:68 -
Thank You Page for WooCommerce10,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )src/Front.php:157 -
SellKit7,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )includes/elementor/modules/order-cart-details/templates/order-details.php:57 -
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 -
Deposits & Partial Payments for WooCommerce5,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )templates/order/awcdp-order-details.php:46 -
WowStore4,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )blocks/woo/thank_you/order_details/Template.php:100 -
Ultimate Store Kit3,000+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )modules/page-order/widgets/page-order.php:1077 -
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 -
MarketKing700+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )public/templates/order-details.php:108 -
ShopPress600+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )public/templates/thankyou/order-details.php:66 -
Jim Soft Swiss QR Invoice500+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )wc-templates/order/order-details.php:117 -
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 -
ShopMaker90+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )templates/widgets/order/order-details.php:58 -
fluXtore Funnel Builder50+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )woocommerce/order/order-details.php:58 -
DEPART20+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )templates/order/partial-order-details.php:45 -
Emissary for Woocommerce10+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )public/templates/order-details.php:38 -
Kanban for WooCommerce10+ installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )src/Backend.php:1326 -
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 -
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 -
Cresta Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )inc/blocks/blocks-thankyou.php:343 -
Order Distribution for WooFewer than 10 installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )templates/assigned-order-details.php:41 -
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 -
ShopCuratorFewer than 10 installs
do_action( 'woocommerce_order_details_before_order_table_items', $order )src/Account/Orders.php:715 -
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.