get_num_queries(): int

Retrieves the number of database queries during the WordPress execution.


Return

int Number of database queries.


Top ↑

Source

File: wp-includes/functions.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes

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