woocommerce_gallery_thumbnail_size хук-фильтрWC 1.0

Gallery thumbnail.

Использование

add_filter( 'woocommerce_gallery_thumbnail_size', 'wp_kama_woocommerce_gallery_thumbnail_size_filter' );

/**
 * Function for `woocommerce_gallery_thumbnail_size` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_gallery_thumbnail_size_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

wc_get_product_attachment_props()
woocommerce_gallery_thumbnail_size
wc_get_gallery_image_html()
woocommerce_gallery_thumbnail_size
woocommerce/includes/wc-product-functions.php 833
$gallery_thumbnail_size           = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );
woocommerce/includes/wc-template-functions.php 1575
$thumbnail_size    = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );

Где используется хук в WooCommerce

Использование не найдено.