wzkb_live_search_query_args
Filters the WP_Query arguments for live search.
Type: filter
Since: 3.1.0
Source: includes/frontend/class-live-search.php line 140
Parameters
| Type | Name | Description |
|---|---|---|
array |
$query_args |
WP_Query arguments. |
string |
$search_query |
The search term. |
int |
$product_id |
Optional product term ID (0 if not set). |
Usage
add_filter( 'wzkb_live_search_query_args', function($query_args, $search_query, $product_id) {
// ...
return $query_args;
} );