WC_Product::is_visible()publicWC 1.0

Returns whether or not the product is visible in the catalog.

{} It's a method of the class: WC_Product{}

Hooks from the method

Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->is_visible();

Code of WC_Product::is_visible() WC 6.8.2

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