函数原型
get_num_queries(): int
函数描述
Retrieves the number of database queries during the WordPress execution.
是否弃用
未弃用
函数参数
无
函数返回值
int Number of database queries.
函数位置
File: wp-includes/functions.php.
函数源码
function get_num_queries() {
global $wpdb;
return $wpdb->num_queries;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |

