Filters the custom data to log alongside a query.
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.
$query_dataarray
$querystring
$query_timefloat
$query_callstackstring
$query_startfloat
$query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );
| Version | Description |
|---|---|
| 5.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/log_query_custom_data