Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: log_query_custom_data

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2066            *
2067            * @since 5.3.0
2068            *
2069            * @param array  $query_data      Custom query data.
2070            * @param string $query           The query's SQL.
2071            * @param float  $query_time      Total time spent on the query, in seconds.
2072            * @param string $query_callstack Comma separated list of the calling functions.
2073            * @param float  $query_start     Unix timestamp of the time at the start of the query.
2074            */
2075           $query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );
2076
2077           $this->queries[] = array(
2078                $query,
2079                $query_time,
2080                $query_callstack,
2081                $query_start,
2082                $query_data,
2083           );
2084      }