WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2367 | * |
| 2368 | * @since 5.3.0 |
| 2369 | * |
| 2370 | * @param array $query_data Custom query data. |
| 2371 | * @param string $query The query's SQL. |
| 2372 | * @param float $query_time Total time spent on the query, in seconds. |
| 2373 | * @param string $query_callstack Comma-separated list of the calling functions. |
| 2374 | * @param float $query_start Unix timestamp of the time at the start of the query. |
| 2375 | */ |
| 2376 | $query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start ); |
| 2377 | |
| 2378 | $this->queries[] = array( |
| 2379 | $query, |
| 2380 | $query_time, |
| 2381 | $query_callstack, |
| 2382 | $query_start, |
| 2383 | $query_data, |
| 2384 | ); |
| 2385 | } |