Remove REST and oEmbed discovery

Removes the native REST and oEmbed discovery links and the REST discovery response header. The APIs and block editor remain available.

Configure

  1. Open Settings → POM Tweaks → Optimization → HTML head cleanup.
  2. Enable the HTML head cleanup module.
  3. Select Remove REST API and oEmbed discovery links, complete any related fields, and save.
  4. Inspect the affected public page source, headers, or feed after refreshing caches.

Disable the individual option to stop its contribution on later requests. Other themes and plugins may still add their own metadata.

See Choose public head metadata for all options, generator precedence, verification and troubleshooting.