Skip to content

Instantly share code, notes, and snippets.

@adamsilverstein
Last active March 14, 2024 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamsilverstein/8b1a3a6d7f160351e9fe31979b76d90f to your computer and use it in GitHub Desktop.
Save adamsilverstein/8b1a3a6d7f160351e9fe31979b76d90f to your computer and use it in GitHub Desktop.
<?php
/**
* Disable password reset
*
* @wordpress-plugin
* Plugin Name: Disable password reset.
* Description: Disable password reset.
* Plugin URI:
* Version: 1.0.0
* Author: Adam Silverstein, Google
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
*/
add_filter ( 'allow_password_reset', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment