Title: Enhanced YouTube Embed
Author: Steve Puddick
Published: <strong>4 พฤษภาคม 2021</strong>
Last modified: 7 มีนาคม 2026

---

Search plugins

![](https://ps.w.org/enhanced-youtube-embed/assets/banner-772x250.jpg?rev=3472317)

![](https://ps.w.org/enhanced-youtube-embed/assets/icon-256x256.jpg?rev=3472317)

# Enhanced YouTube Embed

 By [Steve Puddick](https://profiles.wordpress.org/stevepuddick/)

[Download](https://downloads.wordpress.org/plugin/enhanced-youtube-embed.2.2.0.zip)

 * [Details](https://th.wordpress.org/plugins/enhanced-youtube-embed/#description)
 * [Reviews](https://th.wordpress.org/plugins/enhanced-youtube-embed/#reviews)
 *  [Installation](https://th.wordpress.org/plugins/enhanced-youtube-embed/#installation)
 * [Development](https://th.wordpress.org/plugins/enhanced-youtube-embed/#developers)

 [Support](https://wordpress.org/support/plugin/enhanced-youtube-embed/)

## Description

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/](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/](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

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

## Blocks

This plugin provides 1 block.

 *   Enhanced YouTube Embed Embed a YouTube video with enhanced features and controls.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins` directory, or install the 
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the block editor to add a “Enhanced YouTube Embed” block to your posts or pages,
    OR use the shortcode `[enhanced-youtube-embed]`
 4. For the block: Paste a YouTube URL and customize settings in the block sidebar
 5. For the shortcode: Use the YouTube Shortcode Editor under Tools menu to configure
    and generate your shortcode

## FAQ

### What YouTube URL formats are supported?

The plugin supports all standard YouTube URL formats including:
 * https://www.youtube.
com/watch?v=VIDEO_ID * https://youtu.be/VIDEO_ID * https://www.youtube.com/embed/
VIDEO_ID * https://m.youtube.com/watch?v=VIDEO_ID

### Can I auto-play videos?

Yes, enable the “Auto Play” option in the Playback Settings panel in the block sidebar.

### How do I set a video to start at a specific time?

Use the “Start Time (seconds)” field in the Playback Settings panel to specify when
the video should begin playing.

### What is Privacy Enhanced Mode?

Privacy Enhanced Mode uses the youtube-nocookie.com domain, which may not track 
users until they actually play the video, providing better privacy protection.

### Can I customize the player controls?

Yes, the Player Controls panel allows you to hide controls, disable fullscreen, 
mute audio, and control iOS playback behavior.

### Can I convert between this block and the core YouTube embed?

Yes! Version 2.0.0 includes bidirectional block transforms. Simply use the block
toolbar to transform between Enhanced YouTube Embed and the core YouTube embed block.

### Can I use this without the block editor?

Yes! The plugin includes a `[enhanced-youtube-embed]` shortcode that provides all
the same features as the block. Use the YouTube Shortcode Editor under Tools menu
to visually configure your shortcode with live preview, or manually add the shortcode
with your desired attributes.

### How do I enable closed captions?

In the Closed Captions & Language panel, enable “Display Closed Captions by Default”
and optionally set your preferred caption language using an ISO 639-1 two-letter
code.

### How can I use this in the Classic Editor or Page Builder?

You can utilize the shortcode editor and place the shortcode in content area of 
these tools.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Enhanced YouTube Embed” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Steve Puddick ](https://profiles.wordpress.org/stevepuddick/)

[Translate “Enhanced YouTube Embed” into your language.](https://translate.wordpress.org/projects/wp-plugins/enhanced-youtube-embed)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/enhanced-youtube-embed/),
check out the [SVN repository](https://plugins.svn.wordpress.org/enhanced-youtube-embed/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/enhanced-youtube-embed/)
by [RSS](https://plugins.trac.wordpress.org/log/enhanced-youtube-embed/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.0

 * **New**: Shortcode support – Use `[enhanced-youtube-embed]` shortcode anywhere
   in your content
 * **New**: YouTube Shortcode Editor – Visual shortcode builder under Tools menu
 * **New**: Live preview in shortcode editor with real-time updates
 * **New**: Dynamic shortcode generation with one-click copy
 * **Improved**: Shared rendering logic between block and shortcode for consistency
 * **Improved**: Frontend assets are now properly enqueued for shortcode usage

#### 2.1.0

 * **New**: Playback speed controls
 * **New**: Lazy loading controls
 * **Fixed**: CSS display issues

#### 2.0.0

 * **MAJOR UPDATE**: Complete rebuild using official React.js block framework
 * **Breaking Change**: Not backwards compatible with previous versions
 * **New**: Block transforms – convert to/from core YouTube embed block
 * **New**: Mute option for videos
 * **New**: Plays inline setting for iOS devicesdde
 * **New**: Smart start/end time validation
 * **Improved**: Settings now apply to editor preview in real-time
 * **Improved**: Interactive overlay behavior matches core blocks
 * **Improved**: Responsive toggle functionality with proper class management
 * **Updated**: Removed deprecated YouTube parameters (annotations, modest branding)
 * **Updated**: Related videos setting now accurately reflects YouTube’s behavior(
   same-channel only)
 * **Updated**: Icon changed from red to gold for better visual distinction
 * **Fixed**: Width/height attributes now properly set when responsive mode is disabled
 * **Fixed**: Media settings panel structure matches core blocks

#### 0.1.0

 * Initial release
 * YouTube URL input and validation
 * Responsive embed with aspect ratio control
 * Live preview in editor
 * Caption support
 * Playback settings (auto-play, loop, start/end times)
 * Player controls (hide controls, disable fullscreen, hide annotations)
 * Related videos and branding options
 * Closed captions with language selection
 * Interface language customization
 * Privacy Enhanced Mode
 * Integration with WordPress core embed functionality

## Meta

 *  Version **2.2.0**
 *  Last updated **1 เดือน ago**
 *  Active installations **10+**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/enhanced-youtube-embed/)
 * Tags
 * [block](https://th.wordpress.org/plugins/tags/block/)[shortcode](https://th.wordpress.org/plugins/tags/shortcode/)
   [Tiktok](https://th.wordpress.org/plugins/tags/tiktok/)[video](https://th.wordpress.org/plugins/tags/video/)
   [youtube](https://th.wordpress.org/plugins/tags/youtube/)
 *  [Advanced View](https://th.wordpress.org/plugins/enhanced-youtube-embed/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/enhanced-youtube-embed/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/enhanced-youtube-embed/reviews/)

## Contributors

 *   [ Steve Puddick ](https://profiles.wordpress.org/stevepuddick/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/enhanced-youtube-embed/)