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 10.3.4
public function backorders_allowed() {
return apply_filters( 'woocommerce_product_backorders_allowed', ( 'yes' === $this->get_backorders() || 'notify' === $this->get_backorders() ), $this->get_id(), $this );
}