WordPress show SQL queries

To show SQL queries you may add this code to your wp-config.php file:

define('SAVEQUERIES', true);

And add this code to active theme's footer.php file:

if (current_user_can('administrator')){
    global $wpdb;
    echo "[pre]";
    echo "[/pre]";

Or you may use one of these plugins:

2 thoughts on “WordPress show SQL queries

  1. Pingback: "WordPress Profile Series" Code de la réponse - Coder les réponses

  2. Pingback: "WordPress Profile Sorguları" kodu Cevaplar - Kod Yanıtları

Leave a Reply

Your email address will not be published. Required fields are marked *