Recent

wzkb_live_search_query_args filter

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

TypeNameDescription
array$query_argsWP_Query arguments.
string$search_queryThe search term.
int$product_idOptional 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;
} );