Optimization Module

Disable Embeds

Disable Embeds removes the WordPress oEmbed functionality that allows other sites to embed your posts and generates embed-related JavaScript. WordPress adds scripts for both embedding external content and allowing your content to be embedded elsewhere. If you do not use or need this functionality, disabling it removes unnecessary JavaScript, CSS, and reduces page size. The module removes the wp-embed script, oEmbed discovery links, and related REST API endpoints.

embeds oembed performance optimization cleanup

Disable Embeds Part of 165+ modules $349 $249

Get Lifetime Access

Key Features

Disables oEmbed
Removes embed JavaScript
Better performance

Why Use This Module?

  • Remove unnecessary embed JavaScript
  • Reduce page size and HTTP requests
  • Disable oEmbed discovery for your content
  • Prevent your posts from being embedded elsewhere
  • Cleaner HTML without embed meta tags

Real-World Use Cases

Remove Unused Scripts

Disable WordPress embed functionality and wp-embed.min.js script when you never embed WordPress posts on your site.

Security Hardening

Block oEmbed endpoint to prevent your site content from being embedded on external sites without permission.

Faster Page Load

Eliminate embed detection scripts and rewrite rules to reduce HTTP requests and improve frontend performance.

How to Use

Activate the module to disable WordPress embed functionality completely.

Benefits & Impact

Time Savings

Automates manual tasks and streamlines your workflow

Performance Boost

Improves site speed and database performance

Better UX

Provides a better user experience

Easy Maintenance

Simple setup with minimal ongoing maintenance

Frequently Asked Questions

Will I still be able to embed YouTube videos?

Disabling embeds affects the WordPress embed system. You can still embed YouTube by pasting URLs or using iframe code.

What scripts does this remove?

The wp-embed.min.js script that handles responsive embeds, plus related inline styles and REST API endpoints.

Does this affect Gutenberg embed blocks?

Core embed functionality in the editor may be affected. Test with your specific usage to ensure compatibility.

What Users Are Saying

"Every script removed helps. Embed scripts were not needed so I removed them."

— Performance Focused

"I paste YouTube URLs and they work fine. Did not need the extra embed overhead."

— Simple Blog

"Fewer features running means fewer potential vulnerabilities. Embeds were unnecessary."

— Security Minded

Related Modules

OPTIMIZATION

Database Optimizer

Optimize WordPress database by cleaning post revisions, spam comments, trashed items, and transients to improve database performance and reduce size

database optimization performance +2
OPTIMIZATION

Disable Dashicons (Frontend)

Disable Dashicons icon font on frontend for logged-out users to reduce HTTP requests and improve page load speed when admin bar is hidden

dashicons performance frontend +2
OPTIMIZATION

Disable Emoji

Remove emoji detection script and inline styles from WordPress to reduce HTTP requests and improve page load speed by eliminating unnecessary JavaScript

emoji performance optimization +2
WPSwitchboard

165+ Modules.
One Plugin. Done.

Security, admin tools, performance, SEO, and more. All in one place.

Get Lifetime Access - $349 $249
Core Modules
165+
Admin Tools, Security, Optimization, and more
Enhance your WordPress admin experience
Admin Tools
Dashboard Enhancements
Customize admin interface
Security & Performance
Optimization Modules
Secure & optimize your site