apply_filters( 'log_query_custom_data', array $query_data, string $query, float $query_time, string $query_callstack, float $query_start )

Filters the custom query data being logged.

Description Description

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.

Parameters Parameters


(array) Custom query data.


(string) The query's SQL.


(float) Total time spent on the query, in seconds.


(string) Comma separated list of the calling functions.


(float) Unix timestamp of the time at the start of the query.

Top ↑

Source Source

File: wp-includes/wp-db.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.