[WordPress] 外掛分享: Head Trimmer

首頁外掛目錄 › Head Trimmer
WordPress 外掛 Head Trimmer 的封面圖片
10+
安裝啟用
尚無評分
4 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.4+ v1.0.6 上架:2022-05-25

內容簡介

Head Trimmer 外掛程式是一個可客製化的 WordPress 外掛程式,可自動移除網站上 HEAD 元素中自動產生的資訊。這些額外的資訊會增加網站的負擔,且在產生的原始碼中顯示 WordPress 的版本資訊以及其他潛在的安全特徵。

移除選項包括:

WordPress 版本
從 Scripts 和 Styles 的 URL 移除 WordPress 版本
短網址
從 HTTP 回應標頭移除短網址
Canonical
與當前文章相鄰的文章的關聯連結
RSS 訂閱
xmlrpc(rsd_link)的 Really Simple Discovery 連結
Windows Live Writer Manifest File 連結 (wlwmanifest_link)
oEmbed Discovery 連結
REST API 連結
REST API 連結標頭
表情符號支援
全域樣式和 SVG 濾鏡 (duotone filters)
Gutenberg 區塊 CSS 樣式 (或設定 ‘should_load_separate_core_block_assets’)
Classic Theme 樣式 (classic-theme-styles)
針對 //s.w.org 的 DNS 預取
針對 //fonts.googleapis.com 的 Google 字型 DNS 預取
jQuery

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Head Trimmer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon