Title: What The File
Author: Barry Kooij
Published: <strong>26. aug 2012</strong>
Last modified: 19. veebr 2026

---

Search plugins

![](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

 By [Barry Kooij](https://profiles.wordpress.org/barrykooij/)

[Download](https://downloads.wordpress.org/plugin/what-the-file.1.6.1.zip)

 * [Details](https://et.wordpress.org/plugins/what-the-file/#description)
 * [Reviews](https://et.wordpress.org/plugins/what-the-file/#reviews)
 *  [Installation](https://et.wordpress.org/plugins/what-the-file/#installation)
 * [Development](https://et.wordpress.org/plugins/what-the-file/#developers)

 [Support](https://wordpress.org/support/plugin/what-the-file/)

## Description

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/)

## Screenshots

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

## Installation

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

## FAQ

### 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.

## Reviews

![](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. sept 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. mai 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. märts 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. märts 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. nov. 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!

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-39532/)󠁿

 [WebAssembler](https://profiles.wordpress.org/webassembler/) 25. sept 2024

This plugin is really helpful for theme development when you’re unfamiliar with 
the codebase. It quickly lets you know what the template is – a real time saver.

 [ Read all 882 reviews ](https://wordpress.org/support/plugin/what-the-file/reviews/)

## Contributors & Developers

“What The File” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “What The File” into your language.](https://translate.wordpress.org/projects/wp-plugins/what-the-file)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/what-the-file/), check
out the [SVN repository](https://plugins.svn.wordpress.org/what-the-file/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/what-the-file/) 
by [RSS](https://plugins.trac.wordpress.org/log/what-the-file/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

 *  Version **1.6.1**
 *  Last updated **2 kuud ago**
 *  Active installations **40,000+**
 *  WordPress version ** 3.1 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.3 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/what-the-file/)
 * Tags
 * [development](https://et.wordpress.org/plugins/tags/development/)[file](https://et.wordpress.org/plugins/tags/file/)
   [template](https://et.wordpress.org/plugins/tags/template/)[toolbar](https://et.wordpress.org/plugins/tags/toolbar/)
 *  [Advanced View](https://et.wordpress.org/plugins/what-the-file/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  827 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)

[See all reviews](https://wordpress.org/support/plugin/what-the-file/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/what-the-file/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.barrykooij.com/donate/)