Is there a method to search all posts and pages in my WordPress website and discover those that have a Youtube video embedded in them?
The rationale to do this is I wish to disable the wp-embed.min.js however earlier than doing that, I want to substantiate there aren’t any posts or pages that embed Youtube movies.
Replace
I create a take a look at put up and embed a Youtube video in it, after which examine the HTML supply, and discover the next one:
<div class="rll-youtube-player" data-src="https://www.youtube.com/embed/A1iB6ZfB4kI" data-id="A1iB6ZfB4kI" data-query="feature=oembed"></div><noscript><iframe title="How to Use DataNumen Outlook Repair to Recover Corrupt Outlook PST Files" width="500" top="281" src="https://www.youtube.com/embed/A1iB6ZfB4kI?feature=oembed" frameborder="0" permit="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></noscript>
I then use the next question to look in database:
SELECT * FROM `wp_posts` WHERE `post_content` LIKE '%oembed%'
Nonetheless, the discovered posts are all not regular posts, i.e., do not need a post_title, and I examine post_type and discover they’re all oembed_cache. Does that imply there aren’t any Youtube embedded in all posts? If sure, then why there are such a lot of oembed_cache posts?