woocommerce_gallery_thumbnail_size

woocommerce_gallery_thumbnail_size

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_gallery_thumbnail_size') is found 2 times:

  • /includes/wc-product-functions.php line 1011
    		$props['full_src_h'] = $src[2];
    
    		// Gallery thumbnail.
    		$gallery_thumbnail                = wc_get_image_size( 'gallery_thumbnail' );
    		$gallery_thumbnail_size           = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );
    		$src                              = wp_get_attachment_image_src( $attachment_id, $gallery_thumbnail_size );
    		$props['gallery_thumbnail_src']   = $src[0];
    		$props['gallery_thumbnail_src_w'] = $src[1];
    		$props['gallery_thumbnail_src_h'] = $src[2];
    
    		// Thumbnail version.
    
  • /includes/wc-template-functions.php line 1732
    	global $product;
    
    	$flexslider        = (bool) apply_filters( 'woocommerce_single_product_flexslider_enabled', get_theme_support( 'wc-product-gallery-slider' ) );
    	$gallery_thumbnail = wc_get_image_size( 'gallery_thumbnail' );
    	$thumbnail_size    = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );
    	$image_size        = apply_filters( 'woocommerce_gallery_image_size', $flexslider || $main_image ? 'woocommerce_single' : $thumbnail_size );
    	$full_size         = apply_filters( 'woocommerce_gallery_full_size', apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' ) );
    	$thumbnail_src     = wp_get_attachment_image_src( $attachment_id, $thumbnail_size );
    	$thumbnail_srcset  = wp_get_attachment_image_srcset( $attachment_id, $thumbnail_size );
    	$thumbnail_sizes   = wp_get_attachment_image_sizes( $attachment_id, $thumbnail_size );
    	$full_src          = wp_get_attachment_image_src( $attachment_id, $full_size );