woocommerce_product_backorders_allowed

woocommerce_product_backorders_allowed

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_backorders_allowed') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1723
    	 *
    	 * @return bool
    	 */
    	public function backorders_allowed() {
    		return apply_filters( 'woocommerce_product_backorders_allowed', ( 'yes' === $this->get_backorders() || 'notify' === $this->get_backorders() ), $this->get_id(), $this );
    	}
    
    	/**
    	 * Returns whether or not the product needs to notify the customer on backorder.
    	 *
    	 * @return bool