Wordpress plugins
Disable Embeds

Disable Embeds

Version : 1.2.0
Tested up to : 5.0
Number of download : 11
Author : LittleBizzy
Average rating : 5 / 5 on 8 votes 8 votes, 5 avg.rating

Screenshots

Disable Embeds
Disable Embeds
Disable Embeds
Disable Embeds

Disables both external and internal embedding functions to avoid slow page render, instability and SEO issues, and to improve overall loading speed. Join our FREE Facebook group for support Worth a 5-star review? Thank you! Plugin Homepage Plugin GitHub Current Features disable all oEmbed functions (e.g. disable automatic converting hyperlinks to iframe/embed HTML) prevent other sites from embed your site (outgoing embeds) prevent own site from embed other pages from own site (internal embeds) remove all embed javascript from footer For the 1 and 4 points, I have inspected all the WP core hooks and I think I have neutralized all of them, but let me know if you detect or suspect about any client side embed related code. There are several differences between the existing Disable Embeds plugin and this one, the main one regards to the_content filter using the autoembed function, so I do not understand why that plugin does not disable it due its importance (I suppose WP changed the way to call this filter, which he did that plugin ineffective). Another feature is that disables completely the embeds in the WP post editor (the previous plugin only disables a deprecated TinyMCE view, so it still shows embeds). About the 2 and 3 points, the internal query var that manages the embed display is disabled, and also the params are removed from the rewrite rules, so I think this behaviour is disabled, both for internal or external embeds attempts. About the last point I removed the related hooks, I hope it does not cause any conflict, at the moment I have not detected any client side effects. The following sources (only) can be whitelisted using the above defined constant: YouTube Twitter Facebook Instagram Scribd SoundCloud Reddit Imgur Flickr Vimeo …all other sources are blacklisted for performance reasons, including internal site URLs. Version 1.1.0: The code is completely refactored using namespaces and object encapsulation. With or without the allowed sources constant, the plugin behavior removes any reference to embeds code as it did in the previous version. But with detected allowed sources, the plugin allows the WP ‘autoembed’ filter in the post content, but limiting its execution only to the services indicated in the plugin constant, so it disables the WP autodiscovery embed feature and its associated “postmeta cache”. Note: The supported scribd URLs must follow the format “https://www.scribd.com/doc/” or “https://www.scribd.com/doc/” to be detected by the WordPress oEmbed system, because from scribd.com portal they expose these URLs using “/document/” instead “/doc/”. Compatibility This plugin has been designed for use on SlickStack web servers with PHP 7.2 and MySQL 5.7 to achieve best performance. All of our plugins are meant for single site WordPress installations only; for both performance and usability reasons, we highly recommend avoiding WordPress Multisite for the vast majority of projects. Any of our WordPress plugins may also be loaded as “Must-Use” plugins by using our free Autoloader script in the mu-plugins directory. Defined Constants /* Plugin Meta */ define('DISABLE_NAG_NOTICES', true); /* Disable Embeds Functions */ define('DISABLE_EMBEDS_ALLOWED_SOURCES', 'none'); Technical Details Prefix: DSBEBD Parent Plugin: Speed Demon Disable Nag Notices: Yes Settings Page: No PHP Namespaces: Yes Object-Oriented Code: Yes Includes Media (images, icons, etc): No Includes CSS: No Database Storage: Yes Transients: No WP Options Table: Yes Other Tables: No Creates New Tables: No Creates New WP Cron Jobs: No Database Queries: Backend Only (Options API) Must-Use Support: Yes Multisite Support: No Uninstalls Data: Yes Special Thanks Alex Georgiou, Automattic, Brad Touesnard, Daniel Auener, Delicious Brains, Greg Rickaby, Matt Mullenweg, Mika Epstein, Mike Garrett, Samuel Wood, Scott Reilly, Jan Dembowski, Jeff Starr, Jeff Chandler, Jeff Matson, Jeremy Wagner, John James Jacoby, Leland Fiegel, Luke Cavanagh, Mike Jolley, Pau Iglesias, Paul Irish, Rahul Bansal, Roots, rtCamp, Ryan Hellyer, WP Chat, WP Tavern Disclaimer We released this plugin in response to our managed hosting clients asking for better access to their server, and our primary goal will remain supporting that purpose. Although we are 100% open to fielding requests from the WordPress community, we kindly ask that you keep these conditions in mind, and refrain from slandering, threatening, or harassing our team members in order to get a feature added, or to otherwise get “free” support. The only place you should be contacting us is in our free Facebook group which has been setup for this purpose, or via GitHub if you are an experienced developer. Thank you! Our Philosophy “Decisions, not options.” — WordPress.org “Everything should be made as simple as possible, but not simpler.” — Albert Einstein, et al “Write programs that do one thing and do it well… write programs to work together.” — Doug McIlroy “The innovation that this industry talks about so much is bullshit. Anybody can innovate… 99% of it is ‘Get the work done.’ The real work is in the details.” — Linus Torvalds Search Keywords auto embed, autoembed, disable, disable auto embed, disable autoembed, disable embeds, disable iframe, disable iframes, disable oembed, disable oembeds, iframe, iframes, remove, remove embeds, remove iframe, remove iframes, remove oembed, remove oembeds

Download now