Restricted products showing in autocomplete

[ad_1]

I am using WooCommerce Memberships with the content restriction mode set to “Hide completely”, the restricted products do only show in the search results page when a member is logged in. However the restricted products still show in the autocomplete suggestions when typing in the search bar when not logged in.

Is there any way to get the restricted products to not show in the autocomplete box or some code to exclude a product/catagory just from the autocomplete results?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer