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.
2389<?php2390 * @param array $query_data Custom query data.2391 * @param string $query The query's SQL.2392 * @param float $query_time Total time spent on the query, in seconds.2393 * @param string $query_callstack Comma-separated list of the calling functions.2394 * @param float $query_start Unix timestamp of the time at the start of the query.2395 */2396 $query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );23972398 $this->queries[] = array(2399 $query,2400 $query_time,2401 $query_callstack,2402 $query_start,
History
Introduced in 5.3.0. Unchanged from 6.7.7 through 7.1.0.