
內容簡介
Enhanced YouTube Embed 外掛增強了標準的 YouTube 影片嵌入功能,提供更多選項與設定,讓使用者能夠創建更具互動性和吸引力的影片播放體驗。
【主要功能】
• 自動播放與循環播放設定
• 自訂影片開始與結束時間
• 隱藏或顯示播放器控制項
• 支援多種佈景主題與編輯器
• 隱私增強模式以符合 GDPR
外掛標籤
開發者團隊
原文外掛簡介
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)
