WordPress – Log all queries for debugging Published by Admin on July 22, 2016 Simple way to log all queries in wordpress: Add the below code in your functions.php