WordPress – Woocommerce replace product image in single product page
I am trying to replace product image in single product page with video. I used this code, but the problem is that my video appears twice. add_filter( 'woocommerce_single_product_image_thumbnail_html', 'replace_product_image_with_video', 10, 2 ); function replace_product_image_with_video( $html, $attachment_id ) { global $product;…