| 开发者 |
rad_
ideus |
|---|---|
| 更新时间 | 2026年1月5日 03:34 |
| 捐献地址: | 去捐款 |
| PHP版本: | 5.6 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Instead of loading the iframe of your video on page load, it only loads the video preview image. This will work automatically for all videos that have been inserted through the standard page editor.
Yes, you can use the [sllv_video] shortcode using a link to a YouTube or Vimeo video as its value, like:
[sllv_video]https://youtu.be/GywDFkY3z-c[/sllv_video]
A shortcode can contain several additional attributes:
thumbnail - alternate thumbnail URL, in case the auto-generated one doesn't suit you
play - URL with an alternate image for the Play button, in case you're not happy with the default button
hide_play - if you give any value to this attribute, such as "1", then the Play button will not be displayed
Yes, but you cannot insert a shortcode [sllv_video] into your template file directly.
You will need to pass the code into apply_shortcodes() function and display its output like this:
<?php echo apply_shortcodes( '[sllv_video]https://youtu.be/GywDFkY3z-c[/sllv_video]' ); ?>
<br> in the final code.sllv_youtube_button, sllv_vimeo_button, sllv_video_template