[Changing message Password is incorrect. Please try again. ]
-
Dear Team
I hope you are fineI want to the message Password is incorrect. Please try again. to Admin approval not completed yet to proceed further
Let me explain the process first :
1- For Registration
User registered -> get a mail to click on email activation link -> reset their password2- user the plugin New user approve , to add the part admin approval
User registered -> get a mail to click on email activation link -> reset their password -> Admin approval required before having access to ultimate portalWhen user try to login when admin approval not completed yet , the following message is being displayed – Password is incorrect. Please try again.
I have use that code in the child theme :
add_filter('new_user_approve_pending_error', function( $message ) { unset(UM()->form()->errors['user_password']); // if code execution is here means the user is // still pending approval, so we dont need the // password error for now. add_filter('login_errors', 'nua_approval_pending_error_for_um' ,1000, 2); return $message; }); function nua_approval_pending_error_for_um($error, $key) { if ( 'pending_approval' == $key) { $error = "Admin approval not completed yet to proceed further"; } return $error; }
Unfortunately, it is still displaying Password is incorrect. Please try again.
Can anyone please advised me , what can i do ?
Thank you
- The topic ‘[Changing message Password is incorrect. Please try again. ]’ is closed to new replies.