Overview
YouTube videos that load only when clicked: faster pages, nothing loaded from YouTube before play, local thumbnails and youtube-nocookie.
- Videos load on click
- No YouTube before play
- Faster pages
Best for: Sites with YouTube videos
Installation
- Download tubely-privacy-youtube.zip from My account › My plugins or from your order email. Do not unzip it.
- In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.
Requires WordPress 6.0+, PHP 7.4+. Works with any theme, block themes and page builders.
Features
- Existing YouTube embeds replaced automatically
- Thumbnail stored on your site
- Nothing loaded from YouTube before the click
- youtube-nocookie.com player
- Notice on the video
- Shortcode [tubely id="…"]
- Keyboard accessible play button
Shortcodes
Paste a shortcode in any page, post, widget or page builder text block.
[tubely]
Options of each shortcode are described in the Features above and in the plugin settings page.
For developers
Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).
Filters
tubely_activetubely_sanitize
add_filter( 'tubely_active', function ( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Actions
tubely_admin_after_formtubely_admin_before_formtubely_admin_form_end
Updates
Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.
Frequently asked questions
Do I need to change my posts?
No, existing YouTube links and Embed blocks are replaced automatically.
Does it help with cookie consent?
It avoids YouTube requests before the click; check your own consent needs.
Still stuck?
Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.