WordPress at Your Fingertips
function is not described

WC_Product::backorders_allowed() public WC 1.0

Returns whether or not the product can be backordered.

{} It's a method of the class: WC_Product{}

Return

true|false.

Usage

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

Code of WC_Product::backorders_allowed() WC 5.5.2

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