How to print the excuted sql right after its execution

Posted by Prem Tiwari | Updated on

The $wpdb object has some properties getting set for that:

Note: First of all you have to set define( ‘SAVEQUERIES’, true ); in your wp-config.php file at root folder of WordPress.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers