1
Hello, good morning, good morning! I have a problem and I am not finding the variable to be able to solve, I have a site in WP and when you try to login and neither the password nor the email exist returns me the error message: ERROR: The username or password you entered is incorrect. Lost your password? I tried to locate this phrase in wp-login.php but I didn’t find it there, could you help me? Note: I tried to use the loco Translate but he does not find this phrase!
Test edit I’m trying to make the messages appear only on the login page.
functions.php
function erroLogin(){
add_filter( 'login_errors', 'rs_custom_login_error' );
function rs_custom_login_error(){
return $error = "Informações não existem ou estão erradas!";
}
}
page php.
<?php if ( is_page( 'login' ) ) { ?>
<?php erroLogin(); ?>
<?php } ?>
And I tried that way too.
functions.php
<?php if ( is_page( 'login' ) ) { ?>
add_filter( 'login_errors', 'rs_custom_login_error' );
function rs_custom_login_error(){
return $error = "Informações não existem ou estão erradas!";
}
}
But it hasn’t worked yet
Your entire Wordpress is in English?
– Ricardo Moraleida