WC_Product::is_visible()
Returns whether or not the product is visible in the catalog.
Method of the class: WC_Product{}
Hooks from the method
Return
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->is_visible();
WC_Product::is_visible() WC Product::is visible code WC 9.4.2
public function is_visible() { $visible = $this->is_visible_core(); return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() ); }