Change WordPress user roles and capabilities › Forums › How to or FAQ › Allow access to WooCommerce “Wholesale” category only to “wholesale” Role › Reply To: Allow access to WooCommerce “Wholesale” category only to “wholesale” Role

#8557
Vladimir
Keymaster

Hi,

Try to use access error action “HTTP 404 error” instead. It fully excludes product from the search and listing, while “Show error message” replaces only product full description and does not restrict access to the product meta fields, which contain price, size, color, etc.