Caution should be used when modifying any of this data, it is recommended that any additional information you need to store about a query be added as a new associative array element.
Parameters
$query_dataarray
Custom query data.
$querystring
The query's SQL.
$query_timefloat
Total time spent on the query, in seconds.
$query_callstackstring
Comma-separated list of the calling functions.
$query_startfloat
Unix timestamp of the time at the start of the query.
2387<?php2388 * @param array $query_data Custom query data.2389 * @param string $query The query's SQL.2390 * @param float $query_time Total time spent on the query, in seconds.2391 * @param string $query_callstack Comma-separated list of the calling functions.2392 * @param float $query_start Unix timestamp of the time at the start of the query.2393 */2394 $query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );23952396 $this->queries[] = array(2397 $query,2398 $query_time,2399 $query_callstack,2400 $query_start,
History
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.