WordPress.org

Forums

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

  1. MTWK-IDG
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.