WordPress filter hook
woocommerce_admin_order_item_thumbnail
Defined by WooCommerce and fired by 13 plugins in total, running on 7.1M+ sites between them.
“WooCommerce's admin thumbnail filter, as v1 applied it.”
How to use woocommerce_admin_order_item_thumbnail
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_admin_order_item_thumbnail', function( $value, $item_id, $item ) {
// Change $value here.
return $value;
}, 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.
13 plugins that fire woocommerce_admin_order_item_thumbnail
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )includes/admin/meta-boxes/views/html-order-item.php:17 -
Dokan: AI Powered WooCommerce Multivendor Marketplace Solution30,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )templates/orders/commission-meta-box-html.php:57 -
WCFM10,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $_product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )views/orders/wcfm-view-orders-details.php:512 -
PDF Invoices & Packing Slips for WooCommerce6,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $img, $item->get_id(), $item )includes/Documents/InvoiceRenderer.php:1124 -
YITH WooCommerce Subscription6,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $subscription->product_id, $product )templates/admin/metabox/metabox_subscription_product.php:18 -
WCFM1,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $_product->get_image( 'thumbnail', array( 'title' => '' ), false ), $data['id'], $item )includes/api/class-api-order-controller.php:415 -
Phone Orders for WooCommerce1,000+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $_product->get_image('thumbnail', array('title' => ''), false), $item_id, $item )classes/tabs/class-wc-phone-orders-add-order-page.php:1014 -
Track Orders for WooCommerce200+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image('thumbnail', array('title' => ''), false), $orderkey, $ordervalue )template/wps-map-new-template.php:300 -
StoreSuite20+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $_product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )templates/orders/order-item-html.php:5 -
Account Manager for WooCommerce10+ installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )template/commission/order-edit.php:441 -
Invoice management for WoocommerceFewer than 10 installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )admin/meta-boxes/views/html-order-item.php:14 -
Goopter advanced integration for PayPal Complete Payments and for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item )template/wc-admin/html-order-item.php:14 -
S2 Subscription for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', [ 'title' => '' ], false ), $subscription->product_id, $product )templates/admin/metabox/metabox-subscription-product.php:17
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.