v1.0.0
Dev-only page inspector for WordPress. On any frontend page it reports the resolved template file, the route and post context, the attached ACF field groups, and the ordered chain of theme partials that fired.
Install — download wrt-inspector.zip below, then Plugins → Add New → Upload Plugin.
Enable it — the plugin runs only for manage_options users on a non-production environment. Managed hosts often report production from wp_get_environment_type() even on staging, so set the constant explicitly in wp-config.php:
define('WRT_INSPECTOR', true);The same constant set to false is a hard off switch.
Notes
- Partials are listed in first-inclusion order.
get_included_files()is unique-per-file, so a partial pulled in by several modules appears once, at its first position. - ACF field values are opt-in per request via
?wrt-inspect-values=1and are not fetched server-side otherwise. ?wrt-inspect=1opens the panel without the admin bar.- Not yet verified against a live WP Engine staging install.