WOOF - WooCommerce Products Filter

woof_text_search_query

Allows to redefine text search SQL request on the fly

add_filter('woof_text_search_query', function($where, $woof_text) {

    global $wpdb;

    $where .= "AND $wpdb->posts.ID IN(15,39,121)";

    return $where;
}, 99, 2);

From v.2.2.5/1.2.5