Use code BLACKFRIDAY through Dec. 1st for 30% off!
  1. Home
  2. Docs
  3. General
  4. How to disable embeds in WordPress

How to disable embeds in WordPress

Embeds were released with WordPress 4.4. However, with this came some extra inline code they add to your site (link rel tags), including a JavaScript file (wp-embed.min.js). You can disable embeds altogether to speed things up.

wp-embed.min.js
wp-embed.min.js

Disabling embeds on your WordPress site will do the following:

  • It prevents others from embedding your site, as well as you from embedding sites.
  • Removes oEmbed-specific JavaScript.
  • Disables filtering of oEmbed results.
  • Removes oEmbed discovery links.
  • Turns off oEmbed auto discovery.
  • Removes all embed rewrite rules.

Disable embeds

Follow the steps below to disable embeds.

Step 1

Click into the Perfmatters plugin settings.

Perfmatters plugin settings
Perfmatters plugin settings

Step 2

Make sure you’re on the “General” tab.

Perfmatters General tab
Perfmatters General tab

Step 3

Under the “Options” section, toggle on “Disable Embeds.”

Disable embeds with Perfmatters plugin
Disable embeds with Perfmatters plugin

Step 4

Scroll down and click “Save Changes.”

Was this article helpful?

Related Articles