woocommerce_gallery_full_size
Filters the size for the full gallery image.
Использование
add_filter( 'woocommerce_gallery_full_size', 'wp_kama_woocommerce_gallery_full_size_filter' );
/**
* Function for `woocommerce_gallery_full_size` filter-hook.
*
* @param string $size Image size name.
*
* @return string
*/
function wp_kama_woocommerce_gallery_full_size_filter( $size ){
// filter...
return $size;
}
- $size(строка)
- Image size name.
Список изменений
| С версии 2.6.0 | Введена. |
Где вызывается хук
woocommerce_gallery_full_size
woocommerce_gallery_full_size
woocommerce/includes/wc-product-functions.php 1273
$full_size = apply_filters( 'woocommerce_gallery_full_size', apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' ) );
woocommerce/includes/wc-template-functions.php 1815
$full_size = apply_filters( 'woocommerce_gallery_full_size', apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' ) );