WC_Product::backorders_allowed()
Returns whether or not the product can be backordered.
Method of the class: WC_Product{}
Hooks from the method
Return
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->backorders_allowed();
WC_Product::backorders_allowed() WC Product::backorders allowed code 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 ); }