woocommerce_product_backorders_allowed

woocommerce_product_backorders_allowed

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_product_backorders_allowed') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1786
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    *
     * @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