apply_filters( 'split_the_query', bool $split_the_query, WP_Query $query )

Filters whether to split the query.


Description Description

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.


Top ↑

Parameters Parameters

$split_the_query

(bool) Whether or not to split the query.

$query

(WP_Query) The WP_Query instance.


Top ↑

Source Source

File: wp-includes/class-wp-query.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.