A WordPress-centric search engine for devs and theme authors



get_num_queries ›

Since2.0.0
Deprecatedn/a
get_num_queries ( No parameters )
Returns:
  • (int) Number of database queries.
Defined at:
Codex:

Retrieve the number of database queries during the WordPress execution.



Source

function get_num_queries() {
	global $wpdb;
	return $wpdb->num_queries;
}