Hi all,
I have found solution here:
https://wordpress.stackexchange.com/questions/287887/how-to-translate-wordpress-error-message?rq=1
As some characters caused error messages, here is how I fixed it:
add_filter('login_errors','login_error_message');
function login_error_message($error){
//check if that's the error you are looking for
$pos = strpos($error, 'incorrect');
if (is_int($pos)) {
//its the right error so you can overwrite it
$error = "CHYBA: Zadané pou?ívate?ské meno alebo heslo je nesprávne. <a href='https://www.rainbow-heart.sk/wp-login.php?action=lostpassword'>Stratili ste heslo?</a>";
}
return $error;
}
-
This reply was modified 5 years, 2 months ago by wpuser10.