WordPress WPDB debug einfügen

global $wpdb;
print_r( $wpdb->queries );
Darkvent