WC_Product::is_visible()publicWC 1.0

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() code WC 8.6.1

public function is_visible() {
	$visible = $this->is_visible_core();
	return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
}