As part of our Must Use Plugins, we install the Disable Embeds plugin which disables automatic embed (oEmbed) functions in WordPress. This is because the oEmbed feature of WordPress that was added a few years ago has several drawbacks. For example it allows other websites to embed — and therefore load your site’s database queries — onto their own blog pages, which is sort of like the bad practice of hotlinking.
However, the Disable Embeds plugin does support whitelisting certain third party oEmbed sources. This can be done by adding a simple defined constant (code snippet) to your WordPress website.
/* Disable Embeds Functions */ define('DISABLE_EMBEDS', 'true'); define('DISABLE_EMBEDS_ALLOWED_SOURCES', 'youtube,twitter,soundcloud,scribd');
These quick embed codes will NOT work on LittleBizzy servers:
Using the ‘proper’ embed code is the best way (and improves performance). Here is a YouTube example:
<iframe width="560" height="315" src="https://www.youtube.com/embed/wTpSC_a1nPo" frameborder="0" allowfullscreen></iframe>