Consultas de perfil de WordPress
define('SAVEQUERIES', true);
Scary Skipper
define('SAVEQUERIES', true);
<?php
if (current_user_can('administrator')){
global $wpdb;
echo "[pre]";
print_r($wpdb->queries);
echo "[/pre]";
}
?>