admin管理员组文章数量:1279208
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="; 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" height="281" src="; 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?
本文标签: pagesIs there a way to find all posts with Youtube video embedded
版权声明:本文标题:pages - Is there a way to find all posts with Youtube video embedded? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741269605a2369031.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论