WordPress at Your Fingertips
function is not described

WC_Product::exists() public WC 1.0

Returns whether or not the product post exists.

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

No Hooks.

Return

true|false.

Usage

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

Code of WC_Product::exists() WC 5.5.2

<?php
public function exists() {
	return false !== $this->get_status();
}