Enhanced YouTube Embed

plugin banner

Additional options and settings for embedding YouTube videos with the block editor.

Author:Steve Puddick (profile at wordpress.org)
WordPress version required:5.8
WordPress version tested:6.9.1
Plugin version:2.2.0
Added to WordPress repository:04-05-2021
Last updated:07-03-2026
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:1 618
Active installs:10+
plugin download
Click to start download

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)

Screenshots
FAQ
ChangeLog