WordPress at a glance
filter is not described

split_the_query filter-hook . WP 3.4.0

Filters whether to split the query.

Splitting the query will cause it to fetch just the IDs of the found posts (and then individually fetch each post by ID), rather than fetching every complete row at once. One massive result vs. many small results.


add_filter( 'split_the_query', 'filter_function_name_4951', 10, 2 );
function filter_function_name_4951( $split_the_query, $this ){
	// filter...

	return $split_the_query;
Whether or not to split the query.
The WP_Query instance.


Since 3.4.0 Introduced.

Where the hook is called

wp-includes/class-wp-query.php 2968
$split_the_query = apply_filters( 'split_the_query', $split_the_query, $this );

Where the hook is used (in WP core)

Usage not found!