跳到内容

WP Template Viewer

v1.0.0

keesiemeijer · 2014年7月9日 上架

This plugin allows you to see the content of all theme templates files that were used to display the current page.

正在使用
100+
评分
5.0 / 5
累计下载
6,400
最近更新
2020年4月7日
3 条评价需要 WordPress 3.9+已测试到 5.4.26

贡献者

截图

The WP Template Viewer toolbar menu.
The WP Template Viewer toolbar menu.
File menu in the footer with part of the content of single.php.
File menu in the footer with part of the content of single.php.
Content of index.php.
Content of index.php.

Ever wanted to take a quick look at a theme template file without opening an editor? Or wondered what template files were used to display the current page?

This plugin displays all theme template file names in use for the current page in a toolbar menu. File names are shown in the order they were included. File content is displayed in the footer of your site by clicking a file name.

Only admins and super admins have access to the toolbar menu and file content.

For more information see the plugin documentation

Note: Display of file content only works if the current theme follows the recommended practice of calling the wp_footer() template tag (most theme’s do).

Filters can be used to change (override) the default settings or behavior of the plugin.

For example,

  • Allow specific users access to the menu and content. (convenient for troubleshooting with others)
  • Also include plugin files.
  • Show the menu in the footer instead of the toolbar.

For more information see the filter documentation.

Roadmap

  • Show content with popular syntax highlighter plugins.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums