Last active
May 8, 2017 15:40
-
-
Save mwordpress/52df936ddfe935b63c76d8a6f2c54a1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpse_footer_db_queries(){ | |
echo '<!-- '.get_num_queries().' queries in '.timer_stop(0).' seconds. -->'.PHP_EOL; | |
} | |
add_action('wp_footer', 'wpse_footer_db_queries'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment