Viewing 3 replies - 16 through 18 (of 18 total)
  • Hey Mike, try adding this to your active theme’s functions.php file or PMPro customizations plugin:

    function my_pmproec_content_filter($content, $post) {
    
        global $current_user;
        $validation_key = get_user_meta($current_user->ID, 'pmpro_email_confirmation_key', true);
        $levels = pmpro_has_membership_access(null, null, true);
    
        if(!empty($validation_key) && $validation_key != "validated" && $levels)
            $content =  "<strong>Important! You must click on the confirmation URL sent to " . $current_user->user_email . " before you gain full access to your membership</strong>";
        return $content;
    }
    add_filter('learndash_content', 'my_pmproec_content_filter', 10, 2);

    You can change the text displayed by editing the $content variable. This will block access to any member-protected content to anyone who hasn’t verified their email address.

    Thanks Jessica! That works perfectly.

    In our case, to really finish it off and in case this helps someone else, we also edited the PMPro Email Confirmation plugin “Process validation links” section to redirect to the membership page.

    Thanks again!

    No problem, glad to help!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘How to make members confirm their email address before final registration’ is closed to new replies.