woocommerce_thumbnail_size filter-hookWC 2.6.0

Filters the thumbnail size.

Usage

add_filter( 'woocommerce_thumbnail_size', 'wp_kama_woocommerce_thumbnail_size_filter' );

/**
 * Function for `woocommerce_thumbnail_size` filter-hook.
 * 
 * @param string $size Image size name.
 *
 * @return string
 */
function wp_kama_woocommerce_thumbnail_size_filter( $size ){

	// filter...
	return $size;
}
$size(string)
Image size name.

Changelog

Since 2.6.0 Introduced.

Where the hook is called

wc_get_product_attachment_props()
woocommerce_thumbnail_size
woocommerce/includes/wc-product-functions.php 1258
$thumbnail_size       = apply_filters( 'woocommerce_thumbnail_size', 'woocommerce_thumbnail' );

Where the hook is used in WooCommerce

Usage not found.