WordPress at Your Fingertips
function is not described

WC_Order::is_download_permitted() public WC 1.0

Checks if product download is permitted.

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

Return

true|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->is_download_permitted();

Code of WC_Order::is_download_permitted() WC 5.6.0

public function is_download_permitted() {
	return apply_filters( 'woocommerce_order_is_download_permitted', $this->has_status( 'completed' ) || ( 'yes' === get_option( 'woocommerce_downloads_grant_access_after_payment' ) && $this->has_status( 'processing' ) ), $this );
}