display all queries on a page in wordpress

There is a query function in wp-include/wp-db.php file.We can print all queries running on a page by printing $query variable.

Note:-Don’t forget to revert the change.

About Kapil Chugh

In love with PHP and tweaking WordPress. Hungry for Open Source and new technologies. Honest. God-fearing. Happiest when solving problems.
This entry was posted in WordPress and tagged , . Bookmark the permalink.

6 Responses to display all queries on a page in wordpress

  1. sandeep says:

    not work

  2. Jones says:

    hum,
    mmm

  3. oxycontin says:

    Excellent post! We will be linking to this great post
    on our website. Keep up the good writing.

  4. Thanks in support of sharing such a pleasant thought, post is nice, thats why i have read it entirely

  5. Rex says:

    WOW just what I was searching for. Came here by searching for web ressource

Leave a comment