[WordPress] 外掛分享: CPT Meta Size Analyzer

首頁外掛目錄 › CPT Meta Size Analyzer
WordPress 外掛 CPT Meta Size Analyzer 的封面圖片
全新外掛
安裝啟用
尚無評分
288 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.2+ v1.0.1 上架:2025-04-13

內容簡介

**外掛總結:**

CPT Meta Size Analyzer 是一個簡單而強大的外掛,可以提供對 WordPress 文章元資料和內容大小的洞察。這可幫助您監視和分析各種文章類型,包括自訂文章類型(CPT)的元資料和內容數據。

**問題與答案:**

- 這個外掛的主要功能有哪些?
- Meta Size Table: 顯示每個選定文章類型的總元資料項目及其大小(Bytes、KB、MB)。
- Content Size Table: 顯示總文章項目及其內容大小。
- Size Type Option: 在文章列表中選擇 Bytes、KB 或 MB 作為預設單位。
- Per Post Meta Size: 在文章列表中添加「Meta Size」欄位,顯示單個文章元資料大小。
- Post Type Selection: 啟用/停用文章類型以進行分析。
- Cache Control: 清除快取數據以進行新的重新計算。
- Filter for Post Statuses: 開發者可以使用篩選器自定義包含在大小計算中的文章狀態。

- 這個外掛的用途是什麼?
- 檢測異常龐大的元資料。
- 分析內容存儲使用量。

- 有哪些篩選器可以使用?
- cptmesia_content_size_post_statuses: 這個篩選器允許您自定義包含在元資料和內容大小計算中的文章狀態。

- 這個外掛的授權是什麼?
- 這個外掛的授權是根據 GPLv2 或更高版本。

外掛標籤

開發者團隊

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

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

原文外掛簡介

CPT Meta Size Analyzer is a simple yet powerful plugin that provides insights into your WordPress post meta and content sizes. It helps you monitor and analyze meta and content data for various post types including custom post types (CPT).
Key Features:

Meta Size Table: Displays total meta entries and their size (Bytes, KB, MB) for each selected post type.
Content Size Table: Displays total post entries and their content size.
Size Type Option: Choose between Bytes, KB, or MB as the default unit to display in post listings.
Per Post Meta Size: Adds a “Meta Size” column in post listings to show individual post meta size.
Post Type Selection: Enable/disable post types to include in analysis.
Cache Control: Clear cached data for fresh recalculation.
Filter for Post Statuses: Developers can customize which post statuses are included in size calculations using a filter.

Use Cases:

Detect unusually large meta data.
Analyze content storage usage.

Filters
cptmesia_content_size_post_statuses
This filter allows you to customize which post statuses are included in meta and content size calculations.
By default, the plugin includes ‘publish’ and ‘draft’.
Example: Add ‘private’ post status for calculation:
add_filter( 'cptmesia_content_size_post_statuses', function( $statuses ) {
$statuses[] = 'private'; // Include private posts.
return $statuses;
});

延伸相關外掛

文章
Filter
Apply Filters
Mastodon