What The File


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.

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.


  • What The File shows you what template file is used.


  1. Upload what-the-file to the /wp-content/plugins/ directory
  2. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.


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 to find out more.


2024년 5월 29일
Especailly when editing or doing maintenance in sites with themes and structures you are unfamiliar with, this plugin will give you at a glance all the files being used in each page!
2024년 1월 8일
as new wordpress dev, this made learning framework much easier
2023년 12월 12일
Good plugin that does exactly what it’s advertised to do. Helped me debug an issue with my template files not being applied correctly.
모든 875 평가 읽기

기여자 & 개발자

“What The File”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.


자국어로 “What The File”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.


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.


  • Fixed a CSS bug with admin bar.


  • Fixed a bug where some themes make all images display block.


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


  • Fixed wrongly aligned arrow in MP6 – props remyvv.
  • Template parts are now correctly shown in child themes – props remyvv.
  • Code style change.


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


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


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


  • Added template part support.


  • Improved the admin panel and administrator role check.


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


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


  • Small meta information changes.


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


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


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


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