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:

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

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_purchase_order_item_types', OrderItemType::LINE_ITEM ) src/Blocks/BlockTypes/OrderConfirmation/Totals.php:104
  2. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) woocommerce/template/order/order-details.php:26
  3. MasterStudy LMS WordPress Plugin icon MasterStudy LMS WordPress Plugin10,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) _core/lms/classes/models/admin/StmStatisticsListTable.php:50
  4. WCFM Marketplace icon WCFM Marketplace10,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) core/class-wcfmmp-vendor.php:2272
  5. Thank You Page for WooCommerce icon Thank You Page for WooCommerce10,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) src/Front.php:84
  6. Airwallex Online Payments Gateway icon Airwallex Online Payments Gateway10,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) html/inc/order.php:24
  7. Motors icon Motors8,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) includes/class/Features/WooCommerce/ListingCheckoutHooks.php:118
  8. SellKit icon SellKit7,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) includes/block-editor/blocks/order-cart-details/index.php:177
  9. Donation Platform for WooCommerce: Fundraising & Donation Management icon 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
  10. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce5,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/order/awcdp-order-details.php:14
  11. Edwiser Bridge icon Edwiser Bridge4,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) includes/class-eb-blocks.php:392
  12. Mail Mint icon Mail Mint4,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) app/Internal/Parser/MergeTagParser.php:647
  13. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) blocks/woo/thank_you/order_details/Template.php:16
  14. Thanko Thank You Page Customizer for WooCommerce icon Thanko Thank You Page Customizer for WooCommerce3,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) frontend/frontend.php:1976
  15. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) modules/page-order/widgets/page-order.php:1041
  16. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) blocks/thankyou-order-details/screen.php:61
  17. MarketKing icon MarketKing700+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) public/templates/order-details.php:24
  18. Upzell Checkout Upsell Funnel for WooCommerce icon Upzell Checkout Upsell Funnel for WooCommerce600+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) includes/admin/report.php:270
  19. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) public/templates/thankyou/order-details.php:34
  20. PDF Invoice for WooCommerce + Drag and Drop Template Builder icon PDF Invoice for WooCommerce + Drag and Drop Template Builder500+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) woocommerce/shortcodes.php:417
  21. Jim Soft Swiss QR Invoice icon Jim Soft Swiss QR Invoice500+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) wc-templates/order/order-details.php:52
  22. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) public/woocommerce/order/order-details.php:14
  23. Kelkoogroup Salestracking icon Kelkoogroup Salestracking200+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) woocommerce-kelkoogroup-salestracking.php:80
  24. Shopready icon 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
  25. ShopMaker icon ShopMaker90+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/widgets/order/order-details.php:26
  26. PeproDev Ultimate Profile Solutions icon PeproDev Ultimate Profile Solutions70+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) profile/libs/templates/modern/dash-orders-view-details.php:28
  27. AltaPay for WooCommerce icon AltaPay for WooCommerce60+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) views/altapay-payment-form-external.php:789
  28. fluXtore Funnel Builder icon fluXtore Funnel Builder50+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) woocommerce/order/order-details.php:26
  29. Material Dashboard icon Material Dashboard40+ installs apply_filters( 'woocommerce_purchase_order_item_types', "line_item" ) ext/woocommerce/view/md-view-order.php:9
  30. Custom Thank You Page for WooCommerce icon Custom Thank You Page for WooCommerce40+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) core/includes/class-ecommerce.php:315
  31. Email Templates Customizer for WooCommerce + Drag And Drop Template Builder icon 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
  32. StoreSuite icon StoreSuite20+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/orders/order-details.php:20
  33. DEPART icon DEPART20+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/order/partial-order-details.php:16
  34. Emissary for Woocommerce icon Emissary for Woocommerce10+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) public/templates/order-details.php:17
  35. TDP Ring Builder icon TDP Ring Builder10+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) public/class-tdprb-public.php:1439
  36. Kanban for WooCommerce icon Kanban for WooCommerce10+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) src/Backend.php:1218
  37. Quote Requests for WooCommerce icon Quote Requests for WooCommerce10+ installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) src/functions/woocommerce.php:103
  38. User Collections for WooCommerce icon User Collections for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) src/includes/display-collection.php:32
  39. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) inc/blocks/blocks-thankyou.php:345
  40. Order Distribution for Woo icon Order Distribution for WooFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/assigned-order-details.php:14
  41. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/woocommerce/checkout/thankyou.php:353
  42. PDFDraft PDF Invoices for WooCommerce icon PDFDraft PDF Invoices for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) templates/woocommerce/order/order-details.php:25
  43. ShopCurator icon ShopCuratorFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) src/Account/Orders.php:782
  44. Velo Connector icon Velo ConnectorFewer than 10 installs apply_filters( 'woocommerce_purchase_order_item_types', 'line_item' ) includes/class-velo-connector-api.php:290
  45. ithan devvn checkout for woocommerce icon 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.