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.

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s