WordPress开发者和主题制作者的搜索引擎



get_num_queries ›

Since2.0.0
已弃用n/a
get_num_queries ( 没有参数 )
返回:
  • (int) Number of database queries.
定义在:
文档:

Retrieve the number of database queries during the WordPress execution.



源码

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