Customizing Error Text!
-
Just wanted to add this incase people didn’t know:
To customize the login error (checks for the word password)
add_filter('pp_login_error','login_error_message'); function login_error_message($error){ //check if that's the error you are looking for $pos = strpos($error, 'password'); if (is_int($pos)) { //its the right error so you can overwrite it $error = 'Custom Error Msg'; } return $error; }
To customize the reset password error (checks for the word user)
add_filter('pp_password_reset_notice','reset_error_message'); function reset_error_message($error){ //check if that's the error you are looking for $pos = strpos($error, 'user'); if (is_int($pos)) { //its the right error so you can overwrite it $error = 'Custom Error Msg'; } return $error; }
- The topic ‘Customizing Error Text!’ is closed to new replies.