Filter hook 'log_query_custom_data'

in WP Core File wp-includes/class-wpdb.php at line 2386

Description

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.

Occurrences

Filename Line Number
wp-includes/class-wpdb.php 2386

Parameters

Type Name Description
array $query_data Custom query data.
string $query The query's SQL.
float $query_time Total time spent on the query, in seconds.
string $query_callstack Comma-separated list of the calling functions.
float $query_start Unix timestamp of the time at the start of the query.

PHP Doc

/**
		 * 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.
		 *
		 * @since 5.3.0
		 *
		 * @param array  $query_data      Custom query data.
		 * @param string $query           The query's SQL.
		 * @param float  $query_time      Total time spent on the query, in seconds.
		 * @param string $query_callstack Comma-separated list of the calling functions.
		 * @param float  $query_start     Unix timestamp of the time at the start of the query.
		 */