Skip to content

Instantly share code, notes, and snippets.

@trueqap
Last active July 14, 2019 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trueqap/d7e9e71e7e98ebdeb6b187839d91696d to your computer and use it in GitHub Desktop.
Save trueqap/d7e9e71e7e98ebdeb6b187839d91696d to your computer and use it in GitHub Desktop.
Disable WordPress password reset
<?php
//https://wphu.org/tippek-trukkok/csak-masold-bele-fenti-kodot-sablonod-mappajaban-talalhato-functions-php-ba/
function disable_password_reset() { return false; }
add_filter ( 'allow_password_reset', 'disable_password_reset' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment