• I am using MemberPress plugin and Nextend social connect to signup. I want my email verified when using Nextend Social Connect.
    I have tried the following solution, but it didn’t work.

    // Hook to run after user registration
    add_action(‘nsl_register_new_user’, ‘auto_verify_user’, 10, 1);

    function auto_verify_user($user_id) {
    // Mark the user as verified
    update_user_meta($user_id, ‘user_activation_status’, 1);
    }

    // Disable the email verification
    add_filter(‘user_verification_email_templates_data’, ‘disable_email_verification’, 10, 1);

    function disable_email_verification($email_templates_data) {
    // Disable the email_resend_key template
    if (isset($email_templates_data[’email_resend_key’])) {
    $email_templates_data[’email_resend_key’][‘enable’] = ‘no’;
    }

    return $email_templates_data;
    }

    Please help.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Turn off verification email, automatically verify when using Nextend to sign up’ is closed to new replies.