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