WordPress开发者和主题制作者的搜索引擎



split_the_query ›

Since3.4.0
已弃用n/a
apply_filters( 'split_the_query', $split_the_query, $this )
参数: (2)
  • (bool) $split_the_query Whether or not to split the query.
    Required: Yes
  • (WP_Query) $this The WP_Query instance.
    Required: Yes
定义在:
文档:

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.





源码

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