At the moment WordPress only recognises youtube.com/watch
, youtube.com/playlist
and youtu.be
. However there is wp_oembed_add_provider
; try something like
wp_oembed_add_provider(
'#http://(www\.)?youtube-nocookie\.com/embed.*#i',
'http://www.youtube-nocookie.com/oembed', true );
(untested sorry). You could even overwrite the existing providers to redirect to -nocookie and then use the video shortcode as normal. And you can do this with add_filter('oembed_providers', ... );
too if you’d prefer.
Related Posts:
- How add class youtube and type/html to oembed code?
- oEmbed youtube video aspect ratio
- Adding a wrapper to the youtube embed automatically?
- WordPress, oEmbed & YouTube video’s with a ‘dash’
- YouTube: How to extract closed caption transcript from YouTube video?
- Is there a way to get all IP addresses of youtube to block it with Windows Firewall?
- YouTube maxresdefault thumbnails
- Youtube – downloading a playlist – youtube-dl
- URL syntax for Youtube video in fullscreen and start at time index
- How to customize an end time for a YouTube video?
- How can I clear oEmbed caches for YouTube on posts as they are loaded
- How to Replace YouTube Videos with a “Click to Play” Thumbnail?
- Modify youtube video size on one page and show another size on different page
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- Manipulating oembed_dataparse stopped working for YouTube embeds
- Get all Youtube video’s from posts and embed them on a different page
- WordPress 5.3.x YouTube oEmbed is not working
- Use oEmbed in List Items
- Embeding YouTube video via a template function throws iframe cross-domain policy error
- Video Embed with Captions in Turkish
- Link Youtube Channel In WordPress Site
- Embed youtube list with sidemenu opened
- Getting youtube links from post_content not working
- How can I grab the video id of youtube?
- Add latest Youtube videos on main page [closed]
- oEmbed not working in WordPress
- How to apply an ID to Shortcode Embedded iframe
- How to embed YouTube videos in posts without adding suggested videos at the end?
- How do I embed a YouTube video in WordPress 3.0?
- Div around YouTube video
- Echo do shortcode with custom field not working
- YouTube API 403 error when website restriction set
- Add parameter to first post only
- Looking to Customize YouTube Video Embeds
- How to change src link in YouTube?
- How to make an image of a YouTube video appear as a thumbnail in the list of blog posts
- Is there a way to find all posts with Youtube video embedded?
- WordPress fails to embed video URL on specific theme
- How to add srcdoc attribute to YouTube oEmbed in Gutenberg oEmbed Block
- How to modify the HTML output of Gutenberg block? (Youtube)
- WordPress and Youtube problem
- Advanced Custom Fields oEmbed video width and height
- Iframe Youtube video doesn’t work
- WordPress Mediaelement – Youtube Videos Embed Options
- display only youtube video sticky post
- Generate a WP post from Youtube Feed
- Importing YouTube Videos As Posts – From Playlists
- Avoid embedding YouTube videos and open them in a new window
- add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
- Embbeded YouTube video not showing when admin logged in
- Embedding YouTube Videos at Time of Publish Instead of Time of Schedule (Bare URLS Make Me Sad)
- How do I get a YouTube video thumbnail from the YouTube API?
- YouTube Autoplay not working
- ‘NoneType’ object has no attribute ‘group’
- How do I get a YouTube video thumbnail from the YouTube API?
- Youtube api – stop video
- Youtube_dl : ERROR : YouTube said: Unable to extract video data
- How do I hide related videos at the end of a YouTube playlist embed code?
- Disable play/pause/full screen for HTML5
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- How to embed a youtube playlist with a sidebar
- YouTube: How to present embed video with sound muted
- How to embed an autoplaying YouTube video in an iframe?
- How can I embed a YouTube video in a WordPress template page?
- Does WordPress send data about your blog to WordPress.org or Automattic?
- WordPress MultiSite Active Directory integration and site privacy
- Setting a post’s featured image from an embedded YouTube video
- How to allow editor to edit privacy page / settings only?
- How can I get the privacy policy page?
- Use [embed] filter in template files
- Do_Shortcode not working for Embed
- Which of my blog and personal data is being transfered when WordPress automatically checks for updates?
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How do I embed youtube videos with https instead of http in the URL?
- WP Oembed not passing through the “autoplay=1” variable
- What are the Oembed Links For?
- When oEmbed fails, display an alternative
- how to create a conditional content_width for a wordpress theme?
- static variable loop not working in WordPress
- Get first video from the post (both embed and video shortcodes)
- No option to allow search engines to index my site in WP 4.3
- Featured Image of Video from oembed
- Apply the_content filter to a custom field with multiple values
- oEmbed, thumbnails and wordpress
- Implementing “Video of the Day” Feature?
- How to change default width parameter of embedded video in wordpress?
- Correct regex for wp_embed_register_handler
- Is it possible to enqueue the Youtube API script or does it have to be inline?
- Is there a way to set a user profile to Draft?
- Is it possible to remove height and width attributes from oEmbed video embeds
- Markup of oEmbed codes in the editor?
- how to escape wp_oembed_get for phpcs
- add_filter to youtube embeds?
- Heartbeat API oEmbed
- Preventing YouTube embeds loading multiple instances of player JS?
- WordPress Editor not getting youtube video preview
- Fallback for oEmbed content
- Being notified when some YouTube video in some post becomes unavailable
- Changing Oembed max width based type of page
- Extract the first oembed url inserted on the content of a post