Enhance WooCommerce product galleries by adding YouTube videos with a modern slider and popup media experience.
| Author: | Harsh Patel (profile at wordpress.org) |
| WordPress version required: | 6.6 |
| WordPress version tested: | 6.9 |
| Plugin version: | 1.0.0 |
| Added to WordPress repository: | 13-01-2026 |
| Last updated: | 13-01-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 48 |
![]() Click to start download |
|
Product Media Video Viewer for WooCommerce enhances the default WooCommerce product gallery by allowing store owners to display videos alongside product images.
The plugin adds a smooth slider and popup modal with support for both images and videos, improving product presentation and customer engagement.
Key Features
- Video icon displayed on WooCommerce product image gallery
- Modal popup with separate Images and Videos tabs
- Image gallery view with thumbnail sidebar and full-size image slider
- Video gallery view with video list sidebar and embedded YouTube player
- Custom repeater field in product admin to add multiple YouTube videos
- Fully responsive design for desktop, tablet, and mobile
- Smooth animations, transitions, and hover effects
- Seamless YouTube video embedding and playback
- Lightweight and performance-optimized
- No theme modification required
Developer Hooks
This plugin provides actions and filters for developers to extend functionality.
Actions
pvmg_init– Fires when the plugin initializespvmg_before_save_videos– Fires before product video data is savedpvmg_after_save_videos– Fires after product video data is saved
Filters
pvmg_save_videos– Modify video data before savingpvmg_video_item_html– Customize video HTML output in the popup modalpvmg_product_images– Modify product images used in the media gallery
Performance
The plugin is optimized for performance:
– CSS and JS files are only loaded on product pages
– YouTube API is loaded asynchronously
– Images are lazy-loaded in the modal
– Minimal database queries
Security
– All inputs are sanitized and escaped
– YouTube URLs are validated
– Nonce verification on form submissions
– Capability checks for admin functions
Support
For issues, questions, or feature requests:
– Check the troubleshooting section above
– Review the browser console for errors
– Check WordPress and WooCommerce compatibility
