• Resolved brunonar

    (@brunonar)


    I have a function set to list errors in my user registration if the registrant doesn’t include some custom fields. My understanding is that if the registration_errors filter returns an error then no registration will occur. This is precisely what happens with NUA deactivated, so I’ve isolated this to NUA.

    The code that I’m using is:

    function mmy_func($errors, $sanitized_user_login, $user_email){
        $errors->add('mmfail','Fail Message');
        return $errors;
    }
    add_filter( 'registration_errors', 'mmy_func', 10, 3 );

    I tried to change the priority to 9 as well. The problem remained.

    Please let me know if there is any other info I can provide.

    Thanks in advance.

    • This topic was modified 7 years, 3 months ago by brunonar. Reason: more details
  • The topic ‘registration_errors filter problem’ is closed to new replies.