Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function expand_access_subscription_downloads( $is_download_permitted, $subscription ) {
- if ( $subscription->has_status ( 'cancelled', 'expired' ) ) {
- return true;
- }
- return $is_download_permitted;
- }
- add_filter ( 'woocommerce_order_is_download_permitted', 'expand_access_subscription_downloads', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement