WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to find visibility of product (1 post)

  1. MTWK-IDG
    Member
    Posted 8 months ago #

    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?

    https://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.