Posted By

depiction on 06/14/13


Tagged


Versions (?)

WordPress: Output Number of Database Queries


 / Published in: PHP
 

Output the number of database queries and time in seconds it took to complete.

  1. <?php echo $wpdb->num_queries; ?> <?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>

Report this snippet  

You need to login to post a comment.