SHARE
TWEET

Untitled

a guest Mar 24th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function expand_access_subscription_downloads( $is_download_permitted, $subscription ) {
  4.  
  5.   if ( $subscription->has_status ( 'cancelled', 'expired' ) ) {
  6.     return true;
  7.   }
  8.   return $is_download_permitted;
  9. }
  10.  
  11. add_filter ( 'woocommerce_order_is_download_permitted', 'expand_access_subscription_downloads', 10, 2 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top