
內容簡介
總結:Heat Map Graph 是一個 WordPress 外掛,讓管理員可以使用 SQL SELECT 查詢來建立資料熱度圖,並設定查詢、欄位映射、顏色範圍等參數。
1. 這個 WordPress 外掛可以讓管理員建立什麼?
- 答:資料熱度圖。
2. 該如何設定 Heat Map Graph?
- 答:設定單一 SELECT 陳述句來針對 WP 表格進行查詢,並設定列、行、值欄位的映射,以及最小和最大值的十六進位色彩範圍。
3. 如何在頁面/文章上使用 Heat Map Graph?
- 答:透過以下短碼:[heat_map_graph id="123"]。
4. 這個外掛具有什麼安全功能?
- 答:可以驗證 SQL 是否僅為針對 WP 表格的單一 SELECT 陳述句,阻擋 DML/DDL 關鍵字,不允許多個陳述句,並且僅供管理員使用的 UI,具有 nonce 和嚴格的消毒功能。
5. 啟用後會自動創建哪兩個範本熱度圖?
- 答:每日每類別的文章數(過去 30 天)以及每類別的文章標籤數量。
外掛標籤
開發者團隊
原文外掛簡介
Heat Map Graph lets administrators build data heat maps backed by SQL SELECT queries on WordPress tables. Configure:
Query: a single SELECT statement targeting WP tables
Field mapping: row, column, and value fields produced by the query
Color range: hex colors for min and max
Status: enable/disable
Use the shortcode on pages/posts:
[heat_map_graph id="123"]
Security features:
– Validates SQL is a single SELECT against WP tables only
– Blocks DML/DDL keywords
– No multiple statements
– Admin-only UI with nonces and strict sanitization
On activation, two sample heat maps are created:
– Posts per Day per Category (Last 30 Days)
– Number of Post Tags per Category
