跳到内容

Head Trimmer

v1.0.6

John Dalesandro · 2022年5月26日 上架

Selectively remove WordPress version information, feeds, shortlinks, emoji support, scripts, styles, and other automatically generated extras from the …

正在使用
20+
评分
暂无
累计下载
3,787
最近更新
2026年6月12日
需要 WordPress 5.9+已测试到 7.0.9PHP 7.4+

截图

Head Trimmer admin settings screen.
Head Trimmer admin settings screen.

Head Trimmer gives you granular control over what WordPress automatically outputs in the HEAD element of every page. Each option is independent; enable only the removals that make sense for your site.

Removing unnecessary HEAD elements reduces page weight, eliminates potential security signatures such as the WordPress version number, and keeps your generated source code clean.

All settings are opt-in. Nothing is removed until you enable it on the Admin Settings Head Trimmer screen.

Removal options include:

  • WordPress Version (generator meta tag)
  • WordPress Version from Script and Style URLs
  • All Other Version Signatures from Script and Style URLs
  • Shortlink
  • Shortlink from HTTP Response Headers
  • Canonical
  • Relational Links for Posts Adjacent to Current Post
  • RSS Feeds (removes head links and disables feed endpoints)
  • Really Simple Discovery Link for xmlrpc (rsd_link)
  • Windows Live Writer Manifest File Link (wlwmanifest_link)
  • oEmbed Discovery Links
  • REST API Link and REST API Link Header
  • Emoji Support
  • Global Styles and SVG Filters (duotone filters)
  • Gutenberg Block CSS Styles (or optionally set ‘should_load_separate_core_block_assets’ to load block styles only when needed)
  • Classic Theme CSS Styles (classic-theme-styles)
  • DNS Prefetch for //s.w.org
  • DNS Prefetch for Google Fonts //fonts.googleapis.com
  • jQuery
  • JavaScript Import Map (added in WordPress 6.5)
  • Interactivity API (added in WordPress 6.5)
  • Image Auto Sizes Styles (added in WordPress 6.7)
  • Speculation Rules (added in WordPress 6.8)
  • Comment Reply Script (loads only on singular posts and pages where comments are open)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums