WordPress filter hook
woocommerce_purchase_order_item_types
Defined by WooCommerce and fired by 45 plugins in total, running on 7.3M+ sites between them.
“Thankyou Order details”
How to use woocommerce_purchase_order_item_types
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_purchase_order_item_types', function( $value ) {
// Change $value here.
return $value;
}, 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.
45 plugins that fire woocommerce_purchase_order_item_types
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_purchase_order_item_types', OrderItemType::LINE_ITEM )src/Blocks/BlockTypes/OrderConfirmation/Totals.php:104 -
CartFlows200,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )woocommerce/template/order/order-details.php:26 -
MasterStudy LMS WordPress Plugin10,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )_core/lms/classes/models/admin/StmStatisticsListTable.php:50 -
WCFM Marketplace10,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )core/class-wcfmmp-vendor.php:2272 -
Thank You Page for WooCommerce10,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/Front.php:84 -
Airwallex Online Payments Gateway10,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )html/inc/order.php:24 -
Motors8,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/class/Features/WooCommerce/ListingCheckoutHooks.php:118 -
SellKit7,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/block-editor/blocks/order-cart-details/index.php:177 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/wc-templates/order/order-details.php:32 -
Deposits & Partial Payments for WooCommerce5,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/order/awcdp-order-details.php:14 -
Edwiser Bridge4,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/class-eb-blocks.php:392 -
Mail Mint4,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )app/Internal/Parser/MergeTagParser.php:647 -
WowStore4,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )blocks/woo/thank_you/order_details/Template.php:16 -
Thanko Thank You Page Customizer for WooCommerce3,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )frontend/frontend.php:1976 -
Ultimate Store Kit3,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )modules/page-order/widgets/page-order.php:1041 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )blocks/thankyou-order-details/screen.php:61 -
MarketKing700+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )public/templates/order-details.php:24 -
Upzell Checkout Upsell Funnel for WooCommerce600+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/admin/report.php:270 -
ShopPress600+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )public/templates/thankyou/order-details.php:34 -
PDF Invoice for WooCommerce + Drag and Drop Template Builder500+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )woocommerce/shortcodes.php:417 -
Jim Soft Swiss QR Invoice500+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )wc-templates/order/order-details.php:52 -
StoreBuild400+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )public/woocommerce/order/order-details.php:14 -
Kelkoogroup Salestracking200+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )woocommerce-kelkoogroup-salestracking.php:80 -
Shopready100+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/extension/elewidgets/widgets/thankyou/template-parts/order_details/woo-ready-thankyou-order-details-one.php:10 -
ShopMaker90+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/widgets/order/order-details.php:26 -
PeproDev Ultimate Profile Solutions70+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )profile/libs/templates/modern/dash-orders-view-details.php:28 -
AltaPay for WooCommerce60+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )views/altapay-payment-form-external.php:789 -
fluXtore Funnel Builder50+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )woocommerce/order/order-details.php:26 -
Material Dashboard40+ installs
apply_filters( 'woocommerce_purchase_order_item_types', "line_item" )ext/woocommerce/view/md-view-order.php:9 -
Custom Thank You Page for WooCommerce40+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )core/includes/class-ecommerce.php:315 -
Email Templates Customizer for WooCommerce + Drag And Drop Template Builder40+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/woocommerce/emails/email-order-details.php:25 -
StoreSuite20+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/orders/order-details.php:20 -
DEPART20+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/order/partial-order-details.php:16 -
Emissary for Woocommerce10+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )public/templates/order-details.php:17 -
TDP Ring Builder10+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )public/class-tdprb-public.php:1439 -
Kanban for WooCommerce10+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/Backend.php:1218 -
Quote Requests for WooCommerce10+ installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/functions/woocommerce.php:103 -
User Collections for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/includes/display-collection.php:32 -
Cresta Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )inc/blocks/blocks-thankyou.php:345 -
Order Distribution for WooFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/assigned-order-details.php:14 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/woocommerce/checkout/thankyou.php:353 -
PDFDraft PDF Invoices for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/woocommerce/order/order-details.php:25 -
ShopCuratorFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )src/Account/Orders.php:782 -
Velo ConnectorFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )includes/class-velo-connector-api.php:290 -
ithan devvn checkout for woocommerceFewer than 10 installs
apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' )templates/order/order-details.php:18
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.