jetpack_search_es_wp_query_args, $wp_query_args, $query

jetpack_search_es_wp_query_args, $wp_query_args, $query

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_search_es_wp_query_args, $wp_query_args, $query') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-search/src/inline-search/class-inline-search.php line 204
    		 *
    		 * @param array $wp_query_args The current query args, in WP_Query format.
    		 * @param \WP_Query $query The original WP_Query object.
    		 */
    		$wp_query_args = apply_filters( 'jetpack_search_es_wp_query_args', $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 ( ( $wp_query_args['paged'] * $wp_query_args['posts_per_page'] ) > $max_offset ) {
    			$query->set_404();