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
- ‘NoneType’ object has no attribute ‘group’
- YouTube: How to present embed video with sound muted
- static variable loop not working in WordPress
- Is it possible to remove height and width attributes from oEmbed video embeds
- Markup of oEmbed codes in the editor?
- Preventing YouTube embeds loading multiple instances of player JS?
- Problems using WP’s oembed function + Instagram + AJAX
- How to use get_media_embedded_in_content function
- Getting results from wp_oembed_add_provider
- How to add oEmbed support to my theme?
- Register Embed Handler for Padlet.com
- Cannot embed YouTube video
- How to Hide Ancestors/Threads in Embedded Tweets
- How can i add all videos from youtube playlist as post?
- No option “I would like my site to be private, visible only to users I choose” in Privacy Settings
- vimeo/youtube video embed with thumbnails
- extra text in Vimeo Embedded videos
- oEmbed does not work for comments
- oEmbed 404 errors when trying to use embed block
- Remove Title of youtube video
- How to disable YouTube (and any other oembed) embeding in the editor
- How to set YouTube video as featured image?
- How to save post change url youtube link?
- How to oEmbed MySite in WordPress
- Worrisome oembed hits
- What is the correct oembed provider base url for self-hosted wordpress sites
- Why is my oembed function modifying Twitter embed?
- How to change the oembed “type”?
- Stop Plugin Enumeration [closed]
- WordPress kills an iframe’s apostrophes
- WordPress block editor embeds not working in theme (single.php)
- Use Click Image to Play Youtube Video in a WordPress Loop
- Custom youtube shortcode that uses $content
- Get YouTube video id from url in a custom field
- Add class to oEmbed video from within post editor?
- Adding YouTube button to TinyMCE editor
- Why does apply_filters behave different inside and outside a loop?
- Exclude post from home page and archives, but still public
- Right align a youtube video
- How do I keep my iframes responsive and scaled to fit their container?
- oembed_dataparse filter not running at all for standard YouTube embed
- Replace Vimeo and Youtube in from scratch theme with from-the-group-up single post template?
- Tips and suggestions for WP intranet extranet set up
- Remove link function from oembed image or video
- Add video tag to youtube link fron content
- Displaying cf post formats with oembed
- Choopy Video Playback in a popup using Artiss Youtube Embed [closed]
- WordPress/BuddyPress plugin to allow users to create members-only posts [closed]
- oEmbed work on localhost but not on distant server
- Is wordpress Privacy Settings sufficient for this?
- Facebook Share button wont recognize embedded video [closed]
- Fetching Video From YouTube Automatically [closed]