WordPress filter hook
woocommerce_display_item_meta
Defined by WooCommerce and fired by 7 plugins in total, running on 7.3M+ sites between them.
How to use woocommerce_display_item_meta
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_display_item_meta', function( $html, $item, $args ) {
// Change $html here.
return $html;
}, 10, 3 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
7 plugins that fire woocommerce_display_item_meta
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )includes/wc-template-functions.php:4174 -
PDF Invoices & Packing Slips for WooCommerce300,000+ installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )wpo-ips-functions.php:1873 -
Integration for Szamlazz.hu and WooCommerce7,000+ installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )includes/class-helpers.php:146 -
Enhanced Integration for Billingo and WooCommerce900+ installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )includes/class-helpers.php:66 -
Pizza builder for WooCommerce30+ installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )includes/pizza-checkout.php:223 -
WindDoc10+ installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )src/WindDoc_Action.php:1056 -
Nautica AppGradeFewer than 10 installs
apply_filters( 'woocommerce_display_item_meta', $html, $item, $args )src/APPGRADENAUTICA_Action.php:680
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.