跳到内容

Enhanced YouTube Embed

v2.2.0

Steve Puddick · 2021年5月4日 上架

Set the start, end, language, playback speed, loop, and more. Supports blocks and shortcodes. Create TikTok like videos from any YouTube video too.

正在使用
10+
评分
暂无
累计下载
1,607
最近更新
2026年3月7日
需要 WordPress 5.8+已测试到 6.9.12PHP 7.4+

贡献者

截图

Enhanced YouTube Embed block with URL input
Enhanced YouTube Embed block with URL input
Comprehensive sidebar settings panels
Comprehensive sidebar settings panels
Shortcode Editor Admin Page
Shortcode Editor Admin Page
Front end diplay of shortcode or block
Front end diplay of shortcode or block
Select from available blocks
Select from available blocks

Enhance the standard YouTube video embed with additional options and settings.

The ‘loop’ setting can be combined with a start and end time to continually loop a segment of a video, creating a TikTok like experience.

Playback speed can also be adjusted to replay your video in slow motion or super fast.

View the demo page https://webrockstar.net/2026/03/enhanced-youtube-embed-demo/ to see some examples.

The same video can be embedded several times in page, highlighting different parts of the video. Take a look here to see an example https://webrockstar.net/2026/03/enhanced-youtube-embed-multiple-highlights/.

Enhanced YouTube Embed can be used in the Gutenberg block editor, classic editor, and common page builders like Elementor, Divi, and WPBakery

Full Feature List:

Playback Settings:
* Auto-play videos on page load
* Loop videos continuously
* Mute videos by default
* Set custom start and end times with smart validation
* Control video playback timing
* Ability to combine above features (not all YouTube related plugins can do this)

Player Controls:
* Hide/show player controls
* Disable fullscreen mode
* Plays inline on iOS devices
* Customize player appearance

Player Appearance:
* Show only same-channel related videos as suggestions

Closed Captions & Language:
* Display closed captions by default
* Set preferred caption language
* Customize interface language
* Full ISO 639-1 language support

Privacy:
* Privacy Enhanced Mode using youtube-nocookie.com
* Reduced tracking before video playback (may help with GDPR compliance)

Using the Shortcode

The plugin includes a [enhanced-youtube-embed] shortcode for use in classic editor or anywhere shortcodes are supported.

Shortcode Editor:
Navigate to Tools YouTube Shortcode Editor in your WordPress admin to use the visual shortcode builder. This provides:
* Visual settings panel with all available options
* Live preview of your video
* Automatically generated shortcode that updates as you change settings
* One-click copy to clipboard

Manual Shortcode Usage:

Basic usage:
[enhanced-youtube-embed url=”https://www.youtube.com/watch?v=VIDEO_ID”]

With options:
[enhanced-youtube-embed url=”https://www.youtube.com/watch?v=VIDEO_ID” enableAutoplay=”true” loopVideo=”true” videoStartTime=”30″ videoEndTime=”60″]

Available Shortcode Attributes:

  • url – YouTube video URL (required)
  • responsive – Enable responsive 16:9 aspect ratio (true/false, default: true)
  • enableAutoplay – Auto-play video (true/false, default: false)
  • loopVideo – Loop video continuously (true/false, default: false)
  • mute – Mute video by default (true/false, default: false)
  • hideControls – Hide player controls (true/false, default: false)
  • hideRelatedVideos – Hide related videos (true/false, default: false)
  • disableFullScreen – Disable fullscreen button (true/false, default: false)
  • playsInline – Play inline on mobile (true/false, default: false)
  • usePrivacyEnhancedUrl – Use youtube-nocookie.com (true/false, default: false)
  • loadCcByDefault – Show closed captions (true/false, default: false)
  • videoStartTime – Start time in seconds (number, default: 0)
  • videoEndTime – End time in seconds (number, default: 0)
  • playbackSpeed – Playback speed (0.25 to 2, default: 1)
  • interfaceLanguage – Interface language code (2-letter ISO 639-1 code)
  • ccLangPref – Preferred caption language (2-letter ISO 639-1 code)
  • lazyLoadMethod – Lazy loading method (none/native, default: none)
  • caption – Video caption text (string)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums