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 |
|---|---|
| 3324 | * @type string $where The WHERE clause of the query. |
| 3325 | * @type string $groupby The GROUP BY clause of the query. |
| 3326 | * @type string $join The JOIN clause of the query. |
| 3327 | * @type string $orderby The ORDER BY clause of the query. |
| 3328 | * @type string $distinct The DISTINCT clause of the query. |
| 3329 | * @type string $fields The SELECT clause of the query. |
| 3330 | * @type string $limits The LIMIT clause of the query. |
| 3331 | * } |
| 3332 | */ |
| 3333 | $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this, $old_request, compact( $pieces ) ); |
| 3334 | |
| 3335 | if ( $split_the_query ) { |
| 3336 | // First get the IDs and then fill in the objects. |
| 3337 | |
| 3338 | // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. |
| 3339 | $this->request = |
| 3340 | "SELECT $found_rows $distinct {$wpdb->posts}.ID |
| 3341 | FROM {$wpdb->posts} $join |
| 3342 | WHERE 1=1 $where |