woocommerce_gallery_image_size хук-фильтр . WC 1.0
Image source.
Использование
add_filter( 'woocommerce_gallery_image_size', 'filter_function_name_3161' ); function filter_function_name_3161( $string ){ // filter... return $string; }
- $string
- -
Где вызывается хук
woocommerce_gallery_image_size
woocommerce_gallery_image_size
woocommerce/includes/wc-product-functions.php 789
$image_size = apply_filters( 'woocommerce_gallery_image_size', 'woocommerce_single' );
woocommerce/includes/wc-template-functions.php 1505
$image_size = apply_filters( 'woocommerce_gallery_image_size', $flexslider || $main_image ? 'woocommerce_single' : $thumbnail_size );