Hi everyone,
I think I understand what is happening :
in the woocommerce file wp-content/plugins/woocommerce/templates/single-product\product-thumbnails.php there is the following loop :
if ( $attachment_ids && $product->get_image_id() ) {
foreach ( $attachment_ids as $attachment_id ) {
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', wc_get_gallery_image_html( $attachment_id ), $attachment_id);
}
}
So we are looping on all thumbnails and calling the filter 'woocommerce_single_product_image_thumbnail_html'
And in the rsfv plugin code in the file wp-content/plugins/really-simple-featured-video/includes/Compatibility/Plugins/WooCommerce/class-compatibility.php we are calling the same filter in the setup() function :
add_filter( 'woocommerce_single_product_image_thumbnail_html', array( $this, 'woo_get_video' ), 10, 2 );
So for each thumbnail the video is added.
I managed a workaround by adding a class param that only allows the function woo_get_video tobe called just once and it’s working. (After the first passage it returns the $html param right away so).
Maybe woocommerce changed the template product-thumbnails.php in a recent version or the changed where they are using the woocommerce_single_product_image_thumbnail_html
filter.
Hope that helps others.
Florian