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

Image source.

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

add_filter( 'woocommerce_gallery_image_size', 'wp_kama_woocommerce_gallery_image_size_filter' );

/**
 * Function for `woocommerce_gallery_image_size` filter-hook.
 * 
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_gallery_image_size_filter( $string ){

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

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

wc_get_product_attachment_props()
woocommerce_gallery_image_size
wc_get_gallery_image_html()
woocommerce_gallery_image_size
woocommerce/includes/wc-product-functions.php 847
$image_size      = apply_filters( 'woocommerce_gallery_image_size', 'woocommerce_single' );
woocommerce/includes/wc-template-functions.php 1577
$image_size        = apply_filters( 'woocommerce_gallery_image_size', $flexslider || $main_image ? 'woocommerce_single' : $thumbnail_size );

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

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