woocommerce_brand_thumbnail_size

woocommerce_brand_thumbnail_size

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_brand_thumbnail_size') is found 2 times:

  • /includes/wc-brands-functions.php line 50
    		 * @since 9.4.0
    		 *
    		 * @param string $size Brand's thumbnail size.
    		 */
    		$size = apply_filters( 'woocommerce_brand_thumbnail_size', 'shop_catalog' );
    	}
    
    	if ( $thumbnail_id ) {
    		$image_src    = wp_get_attachment_image_src( $thumbnail_id, $size );
    		$image_src    = $image_src[0];
    		$dimensions   = wc_get_image_size( $size );
    
  • /templates/brands/widgets/brand-thumbnails-description.php line 31
    		 *
    		 * @since 9.4.0
    		 * @param string $size Defaults to 'shop_catalog'
    		 */
    		$thumbnail = wc_get_brand_thumbnail_url( $brand->term_id, apply_filters( 'woocommerce_brand_thumbnail_size', 'shop_catalog' ) );
    
    		if ( ! $thumbnail ) {
    			$thumbnail = wc_placeholder_img_src();
    		}
    
    		$class = '';