get_num_queries()

Retrieve the number of database queries during the WordPress execution.


Description Description


Return Return

(int) Number of database queries.


Top ↑

Source Source

File: wp-includes/functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.