woocommerce_gallery_thumbnail_size
Usage
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
- -
Where the hook is called
woocommerce_gallery_thumbnail_size
woocommerce_gallery_thumbnail_size
woocommerce/includes/wc-product-functions.php 881
$gallery_thumbnail_size = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );
woocommerce/includes/wc-template-functions.php 1611
$thumbnail_size = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );