WordPress at a glance
filter is not described

log_query_custom_data filter-hook . WP 5.3.0

Filters the custom query data being logged.

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 entry to the fourth element $query_data.


add_filter( 'log_query_custom_data', 'filter_function_name_9891', 10, 5 );
function filter_function_name_9891( $query_data, $query, $query_time, $query_callstack, $query_start ){
	// filter...

	return $query_data;
Custom query data.
The query's SQL.
Total time spent on the query, in seconds.
Comma-separated list of the calling functions.
Unix timestamp of the time at the start of the query.

Список изменений

С версии 5.3.0 Введена.

Где вызывается хук

wp-includes/wp-db.php 2077
$query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );

Где используется хук в ядре WP

Использование не найдено.