"how to display all database queries made by wordpress?" Code Answer


if you add define('savequeries', true) to your configuration file, you can then list all the queries made for the current page by adding the following to your theme.

if (current_user_can('administrator')){
    global $wpdb;
    echo "<pre>";
    echo "</pre>";

see the documentation for more details: http://codex.wordpress.org/editing_wp-config.php#save_queries_for_analysis

By LanceLafontaine on February 21 2022

Answers related to “how to display all database queries made by wordpress?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.