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
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->is_visible();
WC_Product::is_visible() WC Product::is visible code WC 10.5.0
public function is_visible() {
$visible = $this->is_visible_core();
return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
}