woocommerce_order_is_download_permitted

woocommerce_order_is_download_permitted

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_is_download_permitted') is found 1 times:

  • /includes/class-wc-order.php line 1680
    1676
    1677
    1678
    1679
    1680
    1681
    1682
    1683
    1684
    1685
    1686
         * @param bool     $is_download_permitted Is the order downloadable.
         * @param WC_Order $this                  Order object.
         * @since 2.7.0
         */
        return apply_filters( 'woocommerce_order_is_download_permitted', $this->has_status( OrderStatus::COMPLETED ) || ( 'yes' === get_option( 'woocommerce_downloads_grant_access_after_payment' ) && $this->has_status( OrderStatus::PROCESSING ) ), $this );
    }
     
    /**
     * Checks if an order needs display the shipping address, based on shipping method.
     *
     * @return bool