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.
Метод класса: ShopperListItem{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ShopperListItem = new ShopperListItem(); $ShopperListItem->is_live(): bool;
Код ShopperListItem::is_live() ShopperListItem::is live WC 10.9.1
public function is_live(): bool {
$product = $this->get_product();
return $product instanceof \WC_Product && self::product_is_live( $product );
}