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.
2381<?php2382 * @param array $query_data Custom query data.2383 * @param string $query The query's SQL.2384 * @param float $query_time Total time spent on the query, in seconds.2385 * @param string $query_callstack Comma-separated list of the calling functions.2386 * @param float $query_start Unix timestamp of the time at the start of the query.2387 */2388 $query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );23892390 $this->queries[] = array(2391 $query,2392 $query_time,2393 $query_callstack,2394 $query_start,
History
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.