Title: What The File
Author: Barry Kooij
Published: <strong>26 Tháng 8, 2012</strong>
Last modified: 19 Tháng 2, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/what-the-file/assets/banner-772x250.jpg?rev=3465249)

![](https://ps.w.org/what-the-file/assets/icon-256x256.png?rev=3465249)

# What The File

 Bởi [Barry Kooij](https://profiles.wordpress.org/barrykooij/)

[Tải về](https://downloads.wordpress.org/plugin/what-the-file.1.6.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/what-the-file/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/what-the-file/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/what-the-file/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/what-the-file/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/what-the-file/)

## Mô tả

What The File adds an option to your toolbar showing what file and template parts
are used to display the page you’re currently viewing.

You can click the file name to directly edit it through the theme editor, though
I don’t recommend this for bigger changes.

What The File supports BuddyPress and Roots Theme based themes.

More information can be found [here](http://www.barrykooij.com/what-the-file/).

#### Looking for a great related posts plugin for WordPress?

Another plugin I’ve built, that I’m very proud of is Related Posts for WordPress.
Related Posts for WordPress offers you the ability to link related posts to each
other with just 1 click! And it’s 100% free! [Check it out on the WordPress repository.](https://wordpress.org/plugins/related-posts-for-wp/)

## Ảnh màn hình

[⌊What The File shows you what template file is used.⌉⌊What The File shows you what
template file is used.⌉[

What The File shows you what template file is used.

## Cài đặt

 1. Upload `what-the-file` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Hỏi đáp

### Where can I see what template file is used?

In the toolbar you will find the “What The File” option. Hovering this option will
display the currently used template file, clicking the template file name will allow
you to edit the template file with the WordPress file editor. Please note that some
BuddyPress files can’t be edited in the WordPress editor.

### I can’t find the “What The File” option in the toolbar

You have to be an Administrator to see the “What The File” option.

### What PHP version are supported / tested?

What The File works supports starts at PHP 5.3 and is tested on every major release
up until PHP 8.1.

### Does What The File supports BuddyPress

Yes it does.

### Does What The File supports Roots Theme

Yes it does.

### You saved me so much time, is there any way I can thank you?

Glad to hear I could help you! You can thank me in various ways, please see [my donation page](http://www.barrykooij.com/donate/)
to find out more.

## Đánh giá

![](https://secure.gravatar.com/avatar/ddeffb211951adbc1b3e52180428f9deb69482c4b2342287f3b515185ce65c51?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-2633/)󠁿

 [sammik2](https://profiles.wordpress.org/sammik2/) 20 Tháng 10, 2026

It simply works. Thanks.

![](https://secure.gravatar.com/avatar/4be81ae5a1d32de4611a4df933bb35a1ab0dc55405884bc69051c3dabbe223c4?
s=60&d=retro&r=g)

### 󠀁[Does everything I need it to!](https://wordpress.org/support/topic/does-everything-i-need-it-to-6/)󠁿

 [matthiascon](https://profiles.wordpress.org/matthiascon/) 9 Tháng 9, 2025

I got this for one purpose, and it performs that with aplomb.

![](https://secure.gravatar.com/avatar/4636c8dea9c0dc990b34e107b96be6631365f7a985efbd40ae3dcc3efe47d44f?
s=60&d=retro&r=g)

### 󠀁[Very Useful Tool](https://wordpress.org/support/topic/very-useful-tool-131/)󠁿

 [iceshade](https://profiles.wordpress.org/iceshade/) 16 Tháng 5, 2025

I've been using this plugin for years and find it very useful. Only downside is 
some of the new themes and plugins don't allow it to show the exact file, just the
main one, which is often just a page referencing a bunch of others.

![](https://secure.gravatar.com/avatar/96b0c786a5b1fa79133e827091be3704a17be4c747419e5cea8bd57811ba1b15?
s=60&d=retro&r=g)

### 󠀁[Muy útil](https://wordpress.org/support/topic/muy-util-283/)󠁿

 [gabrieljrubio](https://profiles.wordpress.org/gabrieljrubio/) 24 Tháng 3, 2025

Es un plugin muy interesante y muy útil en la fase de desarrollo para ver dónde 
se están ejecutando realmente las funciones hookd de wordpress.

![](https://secure.gravatar.com/avatar/27e4cef7e55e4522a4abe3537197a0a3fadbfb58378b1240422c2b05e390bb42?
s=60&d=retro&r=g)

### 󠀁[cool. very helpful !!!!](https://wordpress.org/support/topic/cool-very-helpful/)󠁿

 [sl147](https://profiles.wordpress.org/sl147/) 23 Tháng 3, 2025

cool. very helpful !!!!

![](https://secure.gravatar.com/avatar/f552500092bd80c43d2525490e2739af2bead25b2ad6434e1d7d40d14c9005a9?
s=60&d=retro&r=g)

### 󠀁[FANTASTIC DEVELOPER TOOL!](https://wordpress.org/support/topic/fantastic-developer-tool/)󠁿

 [ferplie](https://profiles.wordpress.org/ferplie/) 30 Tháng 11, 2024

This plugin is GREAT for finding out which templates are being loaded on a page.
If you are using a child theme, this plugin is a MUST have!

 [ Đọc tất cả 883 đánh giá ](https://wordpress.org/support/plugin/what-the-file/reviews/)

## Người đóng góp & Lập trình viên

“What The File” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Barry Kooij ](https://profiles.wordpress.org/barrykooij/)
 *   [ Never5 ](https://profiles.wordpress.org/never5/)

[Dịch “What The File” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/what-the-file)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/what-the-file/), check out
[SVN repository](https://plugins.svn.wordpress.org/what-the-file/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/what-the-file/) qua 
[RSS](https://plugins.trac.wordpress.org/log/what-the-file/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.6.1: December 19, 2025

 * Tweak: Tested with the latest version of WP and meta update.

#### 1.6.0: September 19, 2022

 * Feature: Now correctly working with the wp_body_open tag. Full template part 
   support is back.
 * Tweak: Used proper add_site_option argument count. props @szepeviktor
 * Tweak: Optimized file editing allowed function. props @szepeviktor
 * Tweak: Change template_include priority from 1000 to PHP_INT_MAX for wider support.
   props @greenshady
 * Tweak: Version and meta update.

#### 1.5.4: October 8, 2017

 * Version and meta update.

#### 1.5.3: May 2, 2016

 * Appended an extra check for the Sage starter theme, props [remyvv](https://github.com/remyvv).

#### 1.5.2

 * Fixed a CSS bug with admin bar.

#### 1.5.1

 * Fixed a bug where some themes make _all_ images display block.

#### 1.5.0

 * Only add edit link if direct file editing is allowed. Props szepeviktor
 * Wrapped initiation in hooks and split frontend and admin code.
 * Removed use of create_function.
 * Various code optimizations.

#### 1.4.1

 * Fixed wrongly aligned arrow in MP6 – props [remyvv](https://github.com/remyvv).
 * Template parts are now correctly shown in child themes – props [remyvv](https://github.com/remyvv).
 * Code style change.

#### 1.4.0

 * Fixed a template part bug, props remyvv
 * Code style change

#### 1.3.2

 * Plugin now check if file exists in child theme or parent theme.

#### 1.3.1

 * Editing files directly through the theme editor now supports child themes.

#### 1.3.0

 * Added template part support.

#### 1.2.1

 * Improved the admin panel and administrator role check.

#### 1.2.0

 * Added BuddyPress support.
 * Added WordPress.org review notice.
 * Fixed admin check.
 * Small code changes and refactoring.
 * Extended GPL license.

#### 1.1.2

 * Fixed admin url bug caused when WordPress is installed in a subdirectory.

#### 1.1.1

 * Small meta information changes.

#### 1.1.0

 * Added Roots Theme support.
 * Added WordPress 3.5.1 support.
 * Meta information changed.

#### 1.0.3

 * Added WordPress 3.5 support.
 * Small meta information changes.

#### 1.0.2

 * Fixed incorrect url when theme directory name differs from theme name.

#### 1.0.1

 * Changed the way the plugin initializes.
 * Moved CSS from file to inline CSS.

## Meta

 *  Phiên bản **1.6.1**
 *  Cập nhật lần cuối **9 tháng trước**
 *  Số lượt cài đặt **40.000+**
 *  Phiên bản WordPress ** 3.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.11**
 *  Phiên bản PHP ** 5.3 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/what-the-file/)
 * Thẻ
 * [development](https://vi.wordpress.org/plugins/tags/development/)[file](https://vi.wordpress.org/plugins/tags/file/)
   [template](https://vi.wordpress.org/plugins/tags/template/)[toolbar](https://vi.wordpress.org/plugins/tags/toolbar/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/what-the-file/advanced/)

## Đánh giá

 4.9 trên 5 sao.

 *  [  828 5-star reviews     ](https://wordpress.org/support/plugin/what-the-file/reviews/?filter=5)
 *  [  37 4-star reviews     ](https://wordpress.org/support/plugin/what-the-file/reviews/?filter=4)
 *  [  6 3-star reviews     ](https://wordpress.org/support/plugin/what-the-file/reviews/?filter=3)
 *  [  4 2-star reviews     ](https://wordpress.org/support/plugin/what-the-file/reviews/?filter=2)
 *  [  8 1-star reviews     ](https://wordpress.org/support/plugin/what-the-file/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/what-the-file/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/what-the-file/reviews/)

## Những người đóng góp

 *   [ Barry Kooij ](https://profiles.wordpress.org/barrykooij/)
 *   [ Never5 ](https://profiles.wordpress.org/never5/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/what-the-file/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://www.barrykooij.com/donate/)