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.
get_theme_support( 'wc-product-gallery-slider'
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_single_product_flexslider_enabled'
add_filter('woocommerce_single_product_flexslider_enabled', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(get_theme_support( 'wc-product-gallery-slider') {
// Modifier la valeur
return get_theme_support( 'wc-product-gallery-slider';
}
Chargement des actualités...