zekikaynak adlı üyeden alıntı: mesajı görüntüle
data-src
data-large_image
data-large_image
data-large_image_height

satırları hocam 48-49-50-51'inci satırlar..

$image = wp_get_attachment_image(
    $post_thumbnail_id,
    $image_size,
    false,
    apply_filters(
        'woocommerce_gallery_image_html_attachment_image_params',
        array(
            'title'                   => _wp_specialchars(get_post_field('post_title', $post_thumbnail_id), ENT_QUOTES, 'UTF-8', true),
            'alt'                     => $alt_text,
            'data-caption'            => _wp_specialchars(get_post_field('post_excerpt', $post_thumbnail_id), ENT_QUOTES, 'UTF-8', true),
            'data-src'                => esc_url($image_full[0]),
            'data-large_image'        => esc_url($image_full[0]),
            'data-large_image_width'  => esc_attr($image_full[1]),
            'data-large_image_height' => esc_attr($image_full[2]),
            'class'                   => 'wp-post-image skip-lazy attachment-shop_single size-shop_single',
        ),
        $post_thumbnail_id,
        $image_size,
        true
    )
);
gravatar linki yerine görsel yoksa çıkacak olan görseli yazın:

$img_00 = 'https://www.gravatar.com/avatar/00000000000000000000000000000000';
$img_00_w = '1024';
$img_00_h = '768';
if(isset($image_full[0])){
    $img_00 = $image_full[0];
    $img_00_w = $image_full[1];
    $img_00_h = $image_full[2];
}
$image = wp_get_attachment_image(
    $post_thumbnail_id,
    $image_size,
    false,
    apply_filters(
        'woocommerce_gallery_image_html_attachment_image_params',
        array(
            'title'                   => _wp_specialchars(get_post_field('post_title', $post_thumbnail_id), ENT_QUOTES, 'UTF-8', true),
            'alt'                     => $alt_text,
            'data-caption'            => _wp_specialchars(get_post_field('post_excerpt', $post_thumbnail_id), ENT_QUOTES, 'UTF-8', true),
            'data-src'                => esc_url($img_00),
            'data-large_image'        => esc_url($img_00),
            'data-large_image_width'  => esc_attr($img_00_w),
            'data-large_image_height' => esc_attr($img_00_h),
            'class'                   => 'wp-post-image skip-lazy attachment-shop_single size-shop_single',
        ),
        $post_thumbnail_id,
        $image_size,
        true
    )
);