wpseek.com
A WordPress-centric search engine for devs and theme authors



get_num_queries › WordPress Function

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

Retrieves the number of database queries during the WordPress execution.



Source

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