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.