Title: Current Template Insights
Author: macurious
Published: <strong>2025 年 8 月 11 日</strong>
Last modified: 2026 年 5 月 20 日

---

搜索插件

![](https://ps.w.org/current-template-insights/assets/banner-772x250.png?rev=3343163)

![](https://ps.w.org/current-template-insights/assets/icon-256x256.png?rev=3343169)

# Current Template Insights

 作者：[macurious](https://profiles.wordpress.org/macurious/)

[下载](https://downloads.wordpress.org/plugin/current-template-insights.1.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/current-template-insights/#description)
 * [评价](https://cn.wordpress.org/plugins/current-template-insights/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/current-template-insights/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/current-template-insights/#developers)

 [支持](https://wordpress.org/support/plugin/current-template-insights/)

## 描述

**Displays the current template file and key page details in the WordPress admin
bar for logged-in administrators.**
 No setup required: just install, activate, 
and see the info bar on any front-end page.

**Features:**
 – Shows “📄 Template: ” in the front-end admin bar – Details on hover/
click: full template path, post ID, post type, slug, theme name & version, locale,
body classes, query vars, conditionals, DB query count, memory usage, and more –
No settings page, no configuration – Works with classic and block/FSE themes (special
info for block themes) – Developer-friendly, lightweight, no bloat

## 屏幕截图

[⌊Admin bar showing current template and dropdown with details⌉⌊Admin bar showing
current template and dropdown with details⌉[

Admin bar showing current template and dropdown with details

[⌊More complex example showing the single post template of a CPT⌉⌊More complex example
showing the single post template of a CPT⌉[

More complex example showing the single post template of a CPT

## 安装

 1. Upload the `current-template-insights` folder to `/wp-content/plugins/`
 2. Activate the plugin via the Plugins menu
 3. Visit any front-end page as an admin to view the template info in the admin bar

## 常见问题

### Is there a settings page?

No settings page — just install and go. All information is displayed in the admin
bar for logged-in admins.

### Why can’t i see the template information on the front-end?

The plugin displays its information in the WordPress admin bar. If the admin bar
is disabled in the front-end (via user settings, code or another plugin), then no
output will be displayed.

### Can I extend or customize the details shown?

Yes. Developers can use the `currtempinsights_details` filter hook to add or modify
the debug info. See the plugin’s [GitHub repository](https://github.com/macurious/current-template-insights)
for an example.

### Does this work with Full Site Editing (block) themes?

Yes. With block (Full Site Editing) themes, WordPress uses a core PHP file (`template-
canvas.php`) as a wrapper for block templates. The plugin displays the actual PHP
template in use. (Future versions may add a more descriptive message for block themes.)

### Can I change the background color of the admin bar node?

Yes. You can override it with custom CSS. See the plugin’s [GitHub repository](https://github.com/macurious/current-template-insights)
for an example.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Current Template Insights」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ macurious ](https://profiles.wordpress.org/macurious/)

[帮助将「Current Template Insights」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/current-template-insights)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/current-template-insights/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/current-template-insights/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/current-template-insights/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/current-template-insights/)。

## 更新日志

#### 1.0.4

 * Tested with WordPress 7.0

#### 1.0.3

 * Tested with WordPress 6.9
 * Renamed internal filter hook to use the plugin prefix
 * Minor documentation and code cleanups

#### 1.0.2

 * Improved translation handling in dashboard notice (HTML tag support with sprintf)
 * Added missing translation for dashboard notice

#### 1.0.1

 * Added admin notice when the front-end admin bar is disabled
 * Updated FAQ with customization info
 * Minor improvements to readme formatting

#### 1.0.0

 * First public release

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/current-template-insights/)
 * 标签
 * [admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)[debug](https://cn.wordpress.org/plugins/tags/debug/)
   [development](https://cn.wordpress.org/plugins/tags/development/)[template](https://cn.wordpress.org/plugins/tags/template/)
   [theme](https://cn.wordpress.org/plugins/tags/theme/)
 *  [高级视图](https://cn.wordpress.org/plugins/current-template-insights/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/current-template-insights/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/current-template-insights/reviews/)

## 贡献者

 *   [ macurious ](https://profiles.wordpress.org/macurious/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/current-template-insights/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/wpmacurious)