=== Disable oEmbeds ===
Contributors: snehalpancholi
Tags: performance, oembed, embed, speed, cleanup
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Disable WordPress oEmbed discovery links, wp-embed.min.js, REST API endpoints, and auto-embed processing — independently.

== Description ==

WordPress ships with a full oEmbed system that lets your content be embedded on other sites and lets you embed external content in posts. If you don't need these features, they add unnecessary HTTP requests, JavaScript, and REST endpoints to every page.

This plugin gives you four independent toggles to disable exactly what you don't need.

**What you can disable:**

* **oEmbed Discovery Links** — `<link>` tags in the `<head>` advertising your site's oEmbed endpoint
* **wp-embed.min.js** — the script that powers embeds of your content on other sites
* **oEmbed REST API Endpoints** — removes `/oembed/1.0/embed` and `/oembed/1.0/proxy`
* **Auto-embed in Content** — stops WordPress from converting bare URLs into iframes in post content

All options are independent — enable only the ones you need.

== Installation ==

1. Upload `disable-oembeds` to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Settings → Disable oEmbeds**.
4. Toggle the features you want to disable.
5. Save.

== Frequently Asked Questions ==

= Will this break YouTube embeds I've already added with blocks? =
The Gutenberg YouTube block uses a different code path than oEmbed auto-embed. Disabling "Auto-embed in Content" affects only bare URLs pasted into Classic Editor or text blocks, not dedicated embed blocks.

= Is it safe to disable everything? =
Yes, for most sites. The oEmbed system is primarily useful if other sites need to embed your content as a preview card. If you don't need that, all four options are safe to disable.

== Changelog ==

= 1.0.0 =
* Initial release.
