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 |
|---|---|
| 3395 | * @type string $where The WHERE clause of the query. |
| 3396 | * @type string $groupby The GROUP BY clause of the query. |
| 3397 | * @type string $join The JOIN clause of the query. |
| 3398 | * @type string $orderby The ORDER BY clause of the query. |
| 3399 | * @type string $distinct The DISTINCT clause of the query. |
| 3400 | * @type string $fields The SELECT clause of the query. |
| 3401 | * @type string $limits The LIMIT clause of the query. |
| 3402 | * } |
| 3403 | */ |
| 3404 | $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this, $old_request, compact( $pieces ) ); |
| 3405 | |
| 3406 | if ( $split_the_query ) { |
| 3407 | // First get the IDs and then fill in the objects. |
| 3408 | |
| 3409 | // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. |
| 3410 | $this->request = |
| 3411 | "SELECT $found_rows $distinct {$wpdb->posts}.ID |
| 3412 | FROM {$wpdb->posts} $join |
| 3413 | WHERE 1=1 $where |