您的购物车目前是空的!
在WordPress的一些开发场景中,不需要用户使用通过邮件重设密码,下面我们给出如何禁用找回密码功能。
在主题的functions.php中(如何方便的在更新主题时保留 functions.php 里的自定义)添加如下代码
function disable_password_reset() { return false; } add_filter ( 'allow_password_reset', 'disable_password_reset' );
同样需要在functions.php中添加如下代码
function remove_lostpassword_text ( $text ) { if ($text == '忘记密码?'){$text = '';} return $text; } add_filter( 'gettext', 'remove_lostpassword_text' );