Outil de recherche WordPress pour les développeurs et auteurs de thèmes



split_the_query ›

Depuis3.4.0
Dépréciéen/a
apply_filters( 'split_the_query', $split_the_query, $this )
Paramètres: (2)
  • (bool) $split_the_query Whether or not to split the query.
    Requis: Oui
  • (WP_Query) $this The WP_Query instance.
    Requis: Oui
Défini(e) dans:
Codex:

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.





Source

$split_the_query = apply_filters( 'split_the_query', $split_the_query, $this );