Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created January 11, 2021 10:24
Show Gist options
  • Save andreiglingeanu/87eb0e29aaa5e70b078f0580cfafd35a to your computer and use it in GitHub Desktop.
Save andreiglingeanu/87eb0e29aaa5e70b078f0580cfafd35a to your computer and use it in GitHub Desktop.
<?php
add_filter('blocksy:woocommerce:product-view:product_gallery_images', function ($gallery_images) {
if (count($gallery_images) > 1 && $gallery_images[0]) {
array_shift($gallery_images);
}
return $gallery_images;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment