Last active
April 29, 2019 19:33
-
-
Save ashybaye/8b519dc56f2917cc9364c12a21b56fab to your computer and use it in GitHub Desktop.
WP debug helpers
This file contains 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
* Core Control (outdated) - https://wordpress.org/plugins/core-control/ | |
* WP Debug Bar - https://wordpress.org/plugins/debug-bar/ |
This file contains 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
define('SAVEQUERIES',true); | |
// stores all information about quesries in $wpdb | |
// Use then in the footer.php: | |
if(current_user_can('administrator)) { | |
global $wpdb; | |
echo '<pre>'; | |
print_r($wpdb->queries); | |
echo '</pre>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment