內容簡介
總結:這個外掛可以幫助WordPress開發人員,顯示正在當前頁面上使用的模板文件,並在方便的覆疊中顯示當前的模板文件名稱和目錄路徑,方便在開發期間識別正在渲染當前頁面的模板。
問題與答案:
1. 這個外掛的功能是什麼?
- 這個外掛可以幫助WordPress開發人員顯示正在當前頁面上使用的模板文件。
2. 外掛展示的內容包括什麼?
- 外掛展示當前的模板文件名稱和目錄路徑,方便開發人員識別正在渲染的當前頁面模板。
3. 這個外掛的主要特點有哪些?
- 顯示當前的模板文件名稱
- 顯示模板目錄路徑
- 點擊查看所有包含的模板文件
- 可配置的顯示位置(左上、右上、左下、右下)
- 可自定義背景和文字顏色
- 管理員專用的顯示選項以確保安全
- 調試模式選項(僅在啟用WP_DEBUG時顯示)
- 輕量且性能優化
- 清潔、現代化的介面
4. 這個外掛適合哪些人使用?
- 主題開發人員
- WordPress開發人員
- 網站調試
- 模板層次結構理解
- 開發和暫存環境
5. 這個外掛的設計特點是什麼?
- 外掛設計完全安全且不具侵入性,並提供選項以僅限制管理員可見。
外掛標籤
開發者團隊
② 後台搜尋「Current Page Template Viewer」→ 直接安裝(推薦)
原文外掛簡介
This plugin helps WordPress developers by showing which template files are being used on the current page. It displays the current template file name and directory path in a convenient overlay, making it easy to identify which template is rendering the current page during development.
The plugin shows a small, unobtrusive display that can be clicked to reveal detailed information about all template files loaded for the current page.
Key Features:
* Shows current template file name
* Displays template directory path
* Click to view all included template files
* Configurable display position (top-left, top-right, bottom-left, bottom-right)
* Customizable background and text colors
* Admin-only display option for security
* Debug mode option (only shows when WP_DEBUG is enabled)
* Lightweight and performance-optimized
* Clean, modern interface
Perfect for:
* Theme developers
* WordPress developers
* Site debugging
* Template hierarchy understanding
* Development and staging environments
The plugin is designed to be completely safe and non-intrusive, with options to restrict visibility to administrators only.
