admin管理员组文章数量:1289362
I would like to edit the text that is displayed when the user enters an incorrect password on my site. The text is in the location \wp-includes\user.php
. I have tried editing the file via Filezilla but it says I do not have permission to do so.
The code I would like to change is:
if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) {
return new WP_Error(
'incorrect_password',
sprintf(
/* translators: %s: User name. */
__( '<strong>Error</strong>: The password you entered for the username %s is incorrect.' ),
'<strong>' . $username . '</strong>'
) .
' <a href="' . wp_lostpassword_url() . '">' .
__( 'Lost your password?' ) .
'</a>'
);
}
Is there a filter I can hook into?
Thanks
本文标签: phpEdit incorrect password message WordPress
版权声明:本文标题:php - Edit incorrect password message WordPress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741474087a2380775.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论