WC_Product::is_sold_individually()
Check if a product is sold individually (no quantities).
Метод класса: WC_Product{}
Хуки из метода
Возвращает
true|false
.
Использование
$WC_Product = new WC_Product(); $WC_Product->is_sold_individually();
Код WC_Product::is_sold_individually() WC Product::is sold individually WC 9.7.1
public function is_sold_individually() { return apply_filters( 'woocommerce_is_sold_individually', true === $this->get_sold_individually(), $this ); }