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.9.5

apply_filters('woocommerce_order_is_download_permitted') is found 1 times:

  • /includes/class-wc-order.php line 1682
    		 * @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