WC_Order::is_download_permitted()
Checks if product download is permitted.
Method of the class: WC_Order{}
Hooks from the method
Return
true|false
.
Usage
$WC_Order = new WC_Order(); $WC_Order->is_download_permitted();
WC_Order::is_download_permitted() WC Order::is download permitted code WC 8.6.1
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 ); }