Automattic\WooCommerce\Internal\ShopperLists
ShopperListItem::is_live
Whether the row serves live product data. True when the product (and its parent, for variations) is publish; password-gated products still qualify since their page renders behind a prompt.
Method of the class: ShopperListItem{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShopperListItem = new ShopperListItem(); $ShopperListItem->is_live(): bool;
ShopperListItem::is_live() ShopperListItem::is live code WC 10.9.1
public function is_live(): bool {
$product = $this->get_product();
return $product instanceof \WC_Product && self::product_is_live( $product );
}