• Resolved Purnendu

    (@impurnendu)


    Hi,
    I disabled Registration with Social Login (membership option), but user can register through the default registration form.

    But when someone tried to log in with email id (not registered previously), it’s showing an error “User registration is not allowed”. I think this line is misleading. The error should be like this- “Registration through Social Id is not allowed” or “Your email id is not registered, please register first”.

    How do I change the error message?

Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @impurnendu

    In the latest release of Nextend Social Login ( 3.0.25 ) we added a new filter for overriding the default registration disabled message.
    The name of the filter is:

    • nsl_disabled_register_error_message

    which has a single parameter, that is the error message:
    https://nextendweb.com/nextend-social-login-docs/backend-developer/#disabled-reg-message-override

    Here is an example for the usage:

    add_filter('nsl_disabled_register_error_message', 'my_custom_nsl_registration_disabled_message');
    function my_custom_nsl_registration_disabled_message($message) {
        $message = 'Your email is not registered yet, please register first!';
    
        return $message;
    };

    Best regards,
    Laszlo.

    • This reply was modified 4 years, 5 months ago by Laszlo.
Viewing 1 replies (of 1 total)
  • The topic ‘Registration Related’ is closed to new replies.