woocommerce_gallery_full_size

FILTER woocommerce\includes\wc-template-functions.php (ligne 1753) github
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.

Paramètres

Entrée :
apply_filters( 'woocommerce_product_thumbnails_large_size', 'full'
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

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_gallery_full_size'
add_filter('woocommerce_gallery_full_size', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(apply_filters( 'woocommerce_product_thumbnails_large_size') {
    // Modifier la valeur
    return apply_filters( 'woocommerce_product_thumbnails_large_size';
}

Actualités

Chargement des actualités...