WC_Product::backorders_allowed()publicWC 1.0

Returns whether or not the product can be backordered.

Method of the class: WC_Product{}

Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->backorders_allowed();

WC_Product::backorders_allowed() code 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 );
}