Is there a way to find all posts with Youtube video embedded?
Is there a way to search all posts and pages in my WordPress site and find those who have a Youtube video embedded in them?
The reason to do that is I want to disable the wp-embed.min.js but before doing that, I need to confirm there are no posts or pages that embed Youtube videos.
Update
I create a test post and embed a Youtube video in it, and then check the HTML source, and find the following one:
div class=rll-youtube-player data-src=https://www.youtube.com/embed/A1iB6ZfB4kI data-id=A1iB6ZfB4kI data-query=feature=oembed/divnoscriptiframe title=How to Use DataNumen Outlook Repair to Recover Corrupt Outlook PST Files width=500 height=281 src=https://www.youtube.com/embed/A1iB6ZfB4kI?feature=oembed frameborder=0 allow=accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture allowfullscreen/iframe/noscript
I then use the following query to search in database:
SELECT * FROM `wp_posts` WHERE `post_content` LIKE '%oembed%'
However, the found posts are all not normal posts, i.e., do not have a post_title, and I check post_type and find they are all oembed_cache. Does that mean there are no Youtube embedded in all posts? If yes, then why there are so many oembed_cache posts?