WC_Product::backorders_allowed()publicWC 1.0

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 8.7.0

public function backorders_allowed() {
	return apply_filters( 'woocommerce_product_backorders_allowed', ( 'yes' === $this->get_backorders() || 'notify' === $this->get_backorders() ), $this->get_id(), $this );
}