Just add the comments to oEmbed. Here’s a small plugin that you can use as MU-Plugin or normal plugin and that should explain what’s going on pretty well.
<?php
defined( 'ABSPATH' ) or exit;
/* Plugin Name: (#105942) oEmbed Comments */
add_filter( 'comment_text', 'wpse_105942_oembed_comments', 0 );
function wpse_105942_oembed_comments( $comment )
{
add_filter( 'embed_oembed_discover', '__return_false', 999 );
$comment = $GLOBALS['wp_embed']->autoembed( $comment );
remove_filter( 'embed_oembed_discover', '__return_false', 999 );
return $comment;
}
Related Posts:
- How do I embed youtube videos with https instead of http in the URL?
- How to change thumbnail of embedded Youtube video?
- Manipulating oembed_dataparse stopped working for YouTube embeds
- Youtube – Embed as IFRAME
- Is it possible to modify the default YouTube embed attributes string?
- Youtube parameters within WordPress embed code?
- vimeo/youtube video embed with thumbnails
- Embed YouTube video from custom field value
- Embeding YouTube video via a template function throws iframe cross-domain policy error
- Video Embed with Captions in Turkish
- YouTube embed parameters?
- Embed Youtube video link in wordpress editor
- How to auto embedded youtube with wp_insert_post()
- How to change the way wp_embed handles only youtube videos?
- How to embed YouTube videos in posts without adding suggested videos at the end?
- How to make my new theme read [youtube id=”id of the video here” width=”600″ height=”350″]?
- Div around YouTube video
- YouTube embeded video will not resize (only full screen responsive) [closed]
- WordPress fails to embed video URL
- Youtube iframe embed keeps disappearing from page
- WordPress Mediaelement – Youtube Videos Embed Options
- How to wrap submit button of comment form with div
- Comment Walker vs. Comment Callback
- wp_embed_register_handler not working
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- How to add new embed handler not supported by oembed
- How to change WordPress embedded player size or show just the play button
- customize comment form
- Removing WordPress Icon from oembed link footer
- Convert all youtube link to embed
- Get all Youtube video’s from posts and embed them on a different page
- How to embed a WordPress article on another website [closed]
- Hiding Comments Icon On oembed
- adding a text message beside the comment submit button
- how to get the comment ID in the front end when the REPLY button is clicked?
- Can I use wp_oembed_get to detect a valid embeddable link or is there a better way to do so?
- How can I override print_embed_sharing_dialog() in WordPress 4.5
- How to change commenter links to /user/user_id?
- Embed Post in external page
- How can I force oEmbed to display fixed height & width dimensions?
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- ol children instead of ul children
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- Display total questions of Moodle in WordPress [closed]
- How to display real-time data which is stored in an IBM Cloud web app
- Embedding custom posts with REST API
- How to apply an ID to Shortcode Embedded iframe
- How to Implement Responsive YouTube Video Framing? [closed]
- Get all images in post and comments like Twitter before post title
- How do I embed a YouTube video in WordPress 3.0?
- WordPress block editor embeds not working in theme (single.php)
- WordPress keeps autoplaying my Youtube-Links no matter what I write
- Custom setup of wordpress comments that are displayed
- How to make an embeded a Youtube video from custom field text responsive to screen size?
- How to put an external object into WordPress to that occupies most of the available space?
- Appended comments but they show up above the content instead of below
- How to allow YouTube object embed in WordPress 3+?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- Modify YouTube Embed Code to fit theme
- How to make enqueue_embed_scripts work with the embed_template filter
- How to display comment meta under each comment content
- How to edit embed filter for youtube video to allow responsive full width layout
- How can I embed comments plugin to my own website?
- iframe with Youtube video appears for logged-in users, but not for incognito users
- Custom comment field not showing when logged-in
- Static image for embedded YouTube video instead of blank player?
- add youtube thumbnail in index and single.php add video
- Rename Smart YouTube’s httpv back to http for all posts
- Embed a Google Docs in WordPress?
- embed via wp_embed_register_handler only works in front-end
- Add class and change src type inside wp_oembed_get
- Code playground (like CodePen) inside WordPress?
- How do I make the comment disappear after deleting from the database?
- Is it possible to give a classname to specific comments in the WordPress admin?
- How to show a list of comments on home page from all posts?
- Why does my custom html code (for a donation form) appear in a preview but not in the published post?
- How to disable URL preview in WordPress comments
- How can i display pagination in custom comment list?
- Can’t embed certain youtube videos into theme
- Block editor: Sandbox iframe shows outdated HTML
- How to modify the HTML output of Gutenberg block? (Youtube)
- Nofollow attribute in WordPress link embed code?
- I want to change the WordPress comments file
- Embedding multiple song players on one page without it effecting the load time
- Post editor doesn’t save embed media [closed]
- how to embed a .mp4 video the url postfix with secret key
- How can I return the result of my custom function?
- CartoDB embedding doesn’t work
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- Paginated Comments “reply” does not work!
- Redirect first time comments
- How to embed php page from separate site
- Theme comment callback results nothing
- Why links are not linked if edited comment?
- Author page link in comments is different than in posts?
- Auto approve all comments (editor)
- Can someone please help me find a solution to my youtube embed problems? [duplicate]
- How can I create iframe/embeddable content from my WordPress site?
- Completely disable oEmbed and auto-embed on frontend and post editor?