WC_Product::exists
Returns whether or not the product post exists.
Method of the class: WC_Product{}
No Hooks.
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->exists();
WC_Product::exists() WC Product::exists code WC 10.5.0
public function exists() {
return false !== $this->get_status();
}