ndalpe
7/2/2015 - 9:58 AM

Output WP DB query

Output WP DB query

<?php
if ( current_user_can( 'administrator' ) ) {
  global $wpdb;
  echo "<pre>";
  print_r( $wpdb->queries );
  echo "</pre>";
}
?>