add_filter(
'woocommerce_single_product_image_thumbnail_html',
'wpvg_add_video_to_gallery',
10,
2
);
function wpvg_add_video_to_gallery($html, $post_thumbnail_id) {
global $product;
if (!$product) return $html;
$video_id = get_post_meta($product->get_id(), '_product_video_id', true);
if (!$video_id) return $html;
static $video_added = false;
if ($video_added) return $html;
$video_url = wp_get_attachment_url($video_id);
$video_added = true;
$video_html = '
';
return $video_html . $html;
}
add_action('wp_enqueue_scripts', function () {
if (is_product()) {
wp_enqueue_style(
'wpvg-style',
WPVG_URL . 'assets/css/video-gallery.css'
);
wp_enqueue_script(
'wpvg-js',
WPVG_URL . 'assets/js/video-gallery.js',
['jquery'],
null,
true
);
}
});
king bentley the bulldog - Puppy Ecstacy
Skip to content
+1(402) 838-5369 info@puppyecstasy.com
-
-
Sale!
- Cavalier King Charles
-
$1,000.00 Original price was: $1,000.00.$500.00Current price is: $500.00.
- Breed: Cavalier King Charles Gender: Female Age: 8 Weeks Old Mom’s Weight: 3-3.2lbs Dad’s Weight: #-3 – 3.6 lbs Color: Blenheim Registry: AKC Available: I’m ready today!
- CONTACT US