开发者 | GA_Drony |
---|---|
更新时间 | 2025年2月16日 23:43 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.7.1 |
版权: | GPL v2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory.The plugin supports all video formats compatible with WordPress. However, for conversion, the following formats are accepted: MP4, MOV, AVI, MKV, HEVC, and WEBM.
The plugin uses and assigns two video formats to each product: MP4 and WEBM.
Video previews are automatically generated from the first second of the video. If the FFmpeg library is not available, a WooCommerce placeholder will be used instead of a preview.
Yes, the plugin will still work, but only with MP4 and WEBM videos added directly from the media library. In this case, no conversion to missing formats will be performed.
Yes, Magic Product Video for WooCommerce will work with any theme but may require some additional styling.
If you modify the product gallery display template, you will need to use the plugin’s methods to retrieve video data and display it in your custom template.
Call method to get product video data which was saved on product edit page of admin panel
pvw_get_product_video_data($product_id)
Method return array
[ \'mp4\' => \'url_to_video_in format_MP4_from_media_on_site\', \'webm\' => \'url_to_video_in format_WEBM_from_media_on_site\', \'thumbnail_id\' => \'id_of_attachment_jpg_file_which_was_generated_like_cover_of_video\', \'SOME_KEY\' => \'url_to_video_in_original_format_if_not_same_like_mp4,_or_webm\' ]