WordPress at a glance

get_num_queries() WP 1.0

Retrieve the number of database queries during the WordPress execution.

Возвращает

Int. Number of database queries.

No Hooks.

Usage

get_num_queries();

Notes

  • Global. wpdb. $wpdb WordPress database abstraction object.

Список изменений

С версии 2.0.0 Введена.

Code of get_num_queries() WP 5.5.1

wp-includes/functions.php
<?php
function get_num_queries() {
	global $wpdb;
	return $wpdb->num_queries;
}

Related Functions

From tag: debug

More from category: SQL

No comments
    Log In . Register