This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Valz Display Query Filters


This plugin, once activated, spits out the information passed by each filter used in manipulating database queries, as a learning tool.

The code itself is heavily documented and demonstrates best practices for working with those filters and actions to view / manipulate the query.

It is very important to note that this plugin is not meant for a production environment as it will insert a lot of really ugly HTML throughout your page. You’ll get the most use out of this plugin by looking at its code, and maybe previewing one or two pages on a sandbox, vanilla WordPress site.


  1. Download from
  2. Upload valz_display_query_filters to your site’s /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Or just use the onboard plugin downloader like you normally would.


Why did you write this plugin?

The objective for writing this plugin was to provide a comprehensive, working demonstration of all the filters and action hooks that a query will pass through on its way to being displayed on your page. Note that this plugin does not attempt to only address the main_query, but will spit out its output for each and every query run on that page. That can be a lot of queries if you have a bunch of plugins and whatnot installed. You have been warned.

Contributors & Developers

“Valz Display Query Filters” is open source software. The following people have contributed to this plugin.



  • parse_query is actually and action. Updated accordingly.


  • Initial release prior to WordCamp Montreal 2012
  • Oh, it’s pretty ugly, I’m not going to deny it.
  • But the inline documentation is pretty comprehensive.