X

Disable the allow_password_reset feature

Adding this snippet to the functions.php will disable the allow_password_reset feature from the login page. When using the lost password feature after you add this snippet wordpress will display "Password reset is not allowed for this user".


function disable_password_reset() { 
              return false;
              }
add_filter ( 'allow_password_reset', 'disable_password_reset' );

Comments  Leave a Reply

  1. Nice works, thanks for sharing

  2. Worked, thanks.

  3. fake

  4. Same here…doesn’t work

  5. Doesn’t work… I added it to my theme’s functions.php file and the link is still there.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!