Debugging WordPress Template Part Loading

Template parts are a fundamental part of building WordPress themes but sometimes it can be difficult to find out why a given template part is or isn’t loading. The latest version of Query Monitor makes debugging template part loading easier by exposing the list of any template parts that were not loaded, in addition to … Read more

Profiling and Logging in Query Monitor

Query Monitor 3.0 quietly introduced a feature which allows developers to profile the running time and memory usage of their code. Query Monitor 3.1 adds a PSR-3 compatible logger which allows developers to log debugging messages to Query Monitor. Let’s take a look at profiling and logging in detail. Profiling Basic profiling can be performed … Read more