Title: LH Log Queries and hooks
Author: shawfactor
Published: <strong>27 Ապրիլի, 2019</strong>
Last modified: 9 Օգոստոսի, 2022

---

Search plugins

![](https://ps.w.org/lh-log-queries/assets/banner-772x250.jpg?rev=2075683)

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.

![](https://ps.w.org/lh-log-queries/assets/icon-128x128.png?rev=2075683)

# LH Log Queries and hooks

 By [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Download](https://downloads.wordpress.org/plugin/lh-log-queries.zip)

 * [Details](https://hy.wordpress.org/plugins/lh-log-queries/#description)
 * [Reviews](https://hy.wordpress.org/plugins/lh-log-queries/#reviews)
 *  [Installation](https://hy.wordpress.org/plugins/lh-log-queries/#installation)
 * [Development](https://hy.wordpress.org/plugins/lh-log-queries/#developers)

 [Support](https://wordpress.org/support/plugin/lh-log-queries/)

## Description

This plugin logs all wordpress queries in the current page request as a html comment
at the end of your output.

It only does so when the get variable lh_log_queries is set. That variable has three
settings.
 1. queries: this logs queries only 2. hooks: this logs hooks only 3. 
both: this logs both hooks and filters

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-log-queries/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-log-queries/).**

## Installation

 1. Upload the entire `lh-log-queries` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### Why did you write this plugin?

I wrote it as I wanted a simple, developer orientated plugin that would log bothqueries
and filters without slowing my site down.

### What is something does not work?

LH Log Queries and hooks, and all [https://lhero.org](https://hy.wordpress.org/plugins/lh-log-queries/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists pleasse leave a post in the support forum: [https://wordpress.org/support/plugin/lh-first-comment-redirect/](https://wordpress.org/support/plugin/lh-log-queries/).
I look there regularly and resolve most queries.

### Will it slow my site down?

Not at all, the code is only executed if the get variables are present.

### Can you show me an example url?

If installed on your site the both the hook and query log would be shown (as html
comments), if you used this url: https://yoursite.com/?lh_log_queries=both

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“LH Log Queries and hooks” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[Translate “LH Log Queries and hooks” into your language.](https://translate.wordpress.org/projects/wp-plugins/lh-log-queries)

### Interested in development?

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

## Changelog

**1.00 April 16, 2019**
 Initial release

**1.02 June 02, 2019**
 Variable check, no errors

## Meta

 *  Version **1.02**
 *  Last updated **4 տարի ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.5 or higher **
 *  Tested up to **6.0.11**
 *  Language
 * [English (US)](https://wordpress.org/plugins/lh-log-queries/)
 * Tags
 * [developer](https://hy.wordpress.org/plugins/tags/developer/)[developers](https://hy.wordpress.org/plugins/tags/developers/)
   [log](https://hy.wordpress.org/plugins/tags/log/)[queries](https://hy.wordpress.org/plugins/tags/queries/)
   [query](https://hy.wordpress.org/plugins/tags/query/)
 *  [Advanced View](https://hy.wordpress.org/plugins/lh-log-queries/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/lh-log-queries/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lh-log-queries/reviews/)

## Contributors

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lh-log-queries/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://lhero.org/portfolio/lh-log-queries/)