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:

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

  1. YITH WooCommerce Product Gallery & Image Zoom icon 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
  2. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) includes/helper.php:1234
  3. WooSwipe WooCommerce Gallery icon WooSwipe WooCommerce Gallery3,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'woocommerce_gallery_thumbnail' ) public/class-wooswipe-public.php:347
  4. Quick View for WooCommerce icon Quick View for WooCommerce2,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) class/popup.php:207
  5. Easy 3D Viewer icon Easy 3D Viewer1,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) includes/woo3dv-product-single-compat.php:53
  6. Smart Variations Images & Swatches for WooCommerce icon 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
  7. Quick View WooCommerce icon Quick View WooCommerce1,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) templates/xoo-qv-product-thumbnails.php:41
  8. Quick View For WooCommerce icon Quick View For WooCommerce1,000+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) classes/class.frontend.php:77
  9. Woo Product Carousel and Zoom icon Woo Product Carousel and Zoom100+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) woo-templates/single-product/product-thumbnails.php:71
  10. ShopMaker icon ShopMaker90+ installs apply_filters( 'single_product_small_thumbnail_size', 'thumbnail' ) classes/widgets/sm-single-product-image.php:854
  11. Lazy Load for WooCommerce icon Lazy Load for WooCommerce70+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_catalog' ) lazyload-woocommerce.php:120
  12. Zoom magnifier for Woocommerce icon Zoom magnifier for Woocommerce20+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) zoom_magnifier_for_woocommerce.php:371
  13. Ultimate Product Gallery for WooCommerce icon Ultimate Product Gallery for WooCommerce10+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_catalog' ) includes/lightbox-mobile.php:64
  14. OS WooCommerce Shop Design icon OS WooCommerce Shop Design10+ installs apply_filters( 'single_product_small_thumbnail_size', 'full' ) os-wc-shop-design.php:341
  15. BP notification woocommerce icon BP notification woocommerce10+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) bp-not-woo.php:87
  16. WooLayout icon WooLayout10+ installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) lib/woolayout/single-product/product-thumbnails.php:44
  17. Dresoo icon DresooFewer than 10 installs apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) dresoo.php:758
  18. QuickView icon 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.