MemberPress: Disable Reminders if a Member has Any Active Subscription
add_filter(‘mepr-sub-expires-reminder-disable’, function ($disable_email, $reminder, $usr, $prd) { $active_product_subscriptions = $usr->active_product_subscriptions(‘ids’); // Disable reminders if member has any active subscription. if(!empty($active_product_subscriptions)) { $disable_email = true; } return $disable_email; }, 10, 4);Continue reading