WordPress filter hook
single_product_small_thumbnail_size
Fired by 18 WordPress plugins, running on 22K+ sites between them.
How to use single_product_small_thumbnail_size
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( 'single_product_small_thumbnail_size', function( $thumb_imagesize ) {
// Change $thumb_imagesize here.
return $thumb_imagesize;
}, 10, 1 );Argument names come from Smart Variations Images & Swatches for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
18 plugins that fire single_product_small_thumbnail_size
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
YITH WooCommerce Product Gallery & Image Zoom10,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )templates/single-product/product-thumbnails-magnifier.php:71 -
Ultimate Store Kit3,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )includes/helper.php:1234 -
WooSwipe WooCommerce Gallery3,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'woocommerce_gallery_thumbnail' )public/class-wooswipe-public.php:347 -
Quick View for WooCommerce2,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )class/popup.php:207 -
Easy 3D Viewer1,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )includes/woo3dv-product-single-compat.php:53 -
Smart Variations Images & Swatches for WooCommerce1,000+ installs
apply_filters( 'single_product_small_thumbnail_size', $this->options->thumb_imagesize )public/class-smart-variations-images-public.php:1808 -
Quick View WooCommerce1,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )templates/xoo-qv-product-thumbnails.php:41 -
Quick View For WooCommerce1,000+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )classes/class.frontend.php:77 -
Woo Product Carousel and Zoom100+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )woo-templates/single-product/product-thumbnails.php:71 -
ShopMaker90+ installs
apply_filters( 'single_product_small_thumbnail_size', 'thumbnail' )classes/widgets/sm-single-product-image.php:854 -
Lazy Load for WooCommerce70+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_catalog' )lazyload-woocommerce.php:120 -
Zoom magnifier for Woocommerce20+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )zoom_magnifier_for_woocommerce.php:371 -
Ultimate Product Gallery for WooCommerce10+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_catalog' )includes/lightbox-mobile.php:64 -
OS WooCommerce Shop Design10+ installs
apply_filters( 'single_product_small_thumbnail_size', 'full' )os-wc-shop-design.php:341 -
BP notification woocommerce10+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )bp-not-woo.php:87 -
WooLayout10+ installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )lib/woolayout/single-product/product-thumbnails.php:44 -
DresooFewer than 10 installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )dresoo.php:758 -
QuickViewFewer than 10 installs
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' )public/frontend.php:133
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.