WOOF - WooCommerce Products Filter

woof_exclude_existing_variations

From v.2.2.6

Improves in stock search. Need because not everyone needs variations in the search results and also allows avoid excess requests. By default is false. Example:

add_filter('woof_exclude_existing_variations', function ($init) {
    $init = true;
    return $init;
});