Support » Plugin: WooCommerce » How to find visibility of product

  • Currently, we are using catalog or hidden in the visibility field. I need to adjust some code in tabs.php based upon whether a product has a visibility of hidden. The question I have is how to get the value of the visibility field.
    I’ve tried is_visible but that returns false whether the visibility is catalog or hidden so I can’t use it. How do I find products that are hidden.
    Is there a way to get the value of visibility?

  • The topic ‘How to find visibility of product’ is closed to new replies.