您可以使用login\\u errors过滤器挂钩更改登录屏幕中的消息,只需将此代码粘贴到主题函数中即可。php文件:
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 = "Wrong information";
}
return $error;
}
有关注册屏幕错误,请参阅本codex页
https://codex.wordpress.org/Plugin_API/Filter_Reference/registration_errors