WC_Product::backorders_allowed()
Returns whether or not the product can be backordered.
Метод класса: WC_Product{}
Хуки из метода
Возвращает
true|false
.
Использование
$WC_Product = new WC_Product(); $WC_Product->backorders_allowed();
Код WC_Product::backorders_allowed() WC Product::backorders allowed WC 9.7.1
public function backorders_allowed() { return apply_filters( 'woocommerce_product_backorders_allowed', ( 'yes' === $this->get_backorders() || 'notify' === $this->get_backorders() ), $this->get_id(), $this ); }