get_num_queries()
Retrieve the number of database queries during the WordPress execution.
Description Description
Return Return
(int) Number of database queries.
Source Source
File: wp-includes/functions.php
function get_num_queries() { global $wpdb; return $wpdb->num_queries; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |