better_search_hydrate_query_args
Filter the query arguments used for hydrating posts.
Type: filter
Since: 4.2.0
Source: includes/pro/class-multisite-search.php line 682
Parameters
| Type | Name | Description |
|---|---|---|
array |
$query_args |
The query arguments. |
int |
$blog_id |
The blog ID. |
array |
$post_ids |
Array of post IDs. |
WP_Query |
$query |
The original query object. |
Usage
add_filter( 'better_search_hydrate_query_args', function($query_args, $blog_id, $post_ids, $query) {
// ...
return $query_args;
} );