Get HTML for a gallery image. Hooks: woocommerce_gallery_thumbnail_size, woocommerce_gallery_image_size and woocommerce_gallery_full_size accept name based image sizes, or an array of width/height values.
array( $gallery_thumbnail['width'], $gallery_thumbnail['height']
Sortie :
@param int $attachment_id Attachment ID. @param bool $main_image Is this the main image or a thumbnail?. @param int $image_index The image index in the gallery. @return string
// Modifier la valeur avec le filtre 'woocommerce_gallery_thumbnail_size'
add_filter('woocommerce_gallery_thumbnail_size', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( $gallery_thumbnail['width']) {
// Modifier la valeur
return array( $gallery_thumbnail['width'];
}
Chargement des actualités...