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

MemberPress: Dynamic Trial Periods

//Sets up a trial period on MemberPress such that ALL users renew on March 31st. function mepr_days_until($date){ return (isset($date)) ? floor((strtotime($date) – time())/60/60/24) : false; } function mepr_update_mepr_trial_period() { $prd = new MeprProduct(123); //CHANGE 123 to the ID of your…Continue reading

Snippet B: Cardioxon Personal Form

/** * Snippet B: Cardioxon Personal Data Form * Priority: 10 * * This snippet registers a shortcode [cardioxon_personaldata_form], * which displays a form for personal data (gender, date of birth, age, height). * Form data is stored in localStorage…Continue reading