jetpack_search_es_wp_query_args, $es_wp_query_args, $query
jetpack_search_es_wp_query_args, $es_wp_query_args, $query
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_search_es_wp_query_args, $es_wp_query_args, $query') is found 1 times:
- /jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php line 551
* * @param array $es_wp_query_args The current query args, in WP_Query format. * @param WP_Query $query The original WP_Query object. */ $es_wp_query_args = apply_filters( 'jetpack_search_es_wp_query_args', $es_wp_query_args, $query ); // If page * posts_per_page is greater than our max offset, send a 404. This is necessary because the offset is // capped at Helper::get_max_offset(), so a high page would always return the last page of results otherwise. if ( ( $es_wp_query_args['paged'] * $es_wp_query_args['posts_per_page'] ) > $max_offset ) { $query->set_404();