| 开发者 | heisyai |
|---|---|
| 更新时间 | 2026年9月29日 04:49 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[heisy_video] for block themes, page builders and anywhere else.heisy_video() and heisy_video_url() print nothing for a product without a video.heisy folder to /wp-content/plugins/ and activate it on the Plugins screen.The plugin is free to install, and nothing in it is locked. The videos are made on the Heisy service, which needs a paid plan with monthly credits; see heisyai.com/pricing. A render that fails gives its credits back automatically.
No. Heisy works from any image in your Media Library. With WooCommerce active, you can also start from a product and show its video on the product page.
In your own Media Library, as MP4 files, like any other upload. They are yours to use on the product page, on social media or in ads.
The image you render from, the product's name and description, and the settings of each render, sent to the Heisy API at heisyai.com. See External services above for the full list.
First give the product a video: on the product's edit screen, pick a render in the Heisy video box (or press Use on product on a render in Heisy → All renders). Then choose where it appears. There are four ways, and you only need one:
[heisy_video] in any block, widget or template that supports shortcodes.Yes, it can. On every product page where a Heisy video is shown, Heisy adds video structured data (a schema.org VideoObject) with the video, its preview picture, the product's name and description, and the upload date. That is what Google reads to show a video in its results. Nothing is added for a product whose video isn't on the page.
If your SEO plugin already writes video markup for these pages, you can switch Heisy's off with one line in your theme's functions.php: add_filter( 'heisy_video_schema', '__return_false' );
The video's slide is an ordinary gallery slide to WooCommerce, so the slider, the thumbnails and the lightbox keep working. The video plays while its slide is showing, and pauses when a shopper moves to a photo. It works on WooCommerce's standard product page and in block themes that use WooCommerce's product image gallery. A video made before Heisy saved preview pictures shows above the gallery instead, until you pick a newer render.
That setting stops Heisy adding the video by itself. It does not remove a [heisy_video] shortcode, a Heisy block or a heisy_video() call that is already in your theme or page — those are the "places" it means. If your theme's product template contains one, every product with a video shows it there.
To hide the video on one product, pick None in the video list of its Heisy video box.
[heisy_video] — the video player for the product being viewed.
product="123" — show another product's video.autoplay="0" — do not start by itself (default 1: plays muted, as browsers require).loop="0" — play once (default 1).controls="1" — show the play/pause bar (default 0).class="my-class" — an extra CSS class on the <video>.[heisy_video autoplay="0" controls="1" class="product-film"]
[heisy_video_url] — only the video's address, for your own markup or a custom field. product="123" works here too.
heisy_video( $product_id = 0, $atts = [] ) returns the <video> markup, heisy_video_url( $product_id = 0 ) returns the address. 0 means the product being viewed. Both return an empty string when the product has no video, so check before printing a wrapper:
true ] ); ?>
Timber exposes PHP functions through function():
{% set video_url = function('heisy_video_url') %}
{% if video_url %}
{{ function('heisy_video', 0, { controls: true }) }}
{% endif %}
Or with the shortcode:
{{ function('do_shortcode', '[heisy_video]') }}
Yes. The shortcode, the block and both functions ask WordPress for the address of the video and of its poster image every time the page is built (wp_get_attachment_url()), which is what CDN and offload plugins rewrite. The exception is a URL copied from the Heisy video box and pasted into a page by hand: that text stays as it was, so prefer the shortcode or the functions. If your product pages are cached, a new video appears once that cache is cleared.