This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Password Reset Removed | |
* Description: Removes the ability for non admin users to change/reset their passwords. | |
* Version: 1.1 | |
* Author: Derek Herman ; Modified by Juliobox (boiteaweb.fr) | |
* Author URI: http://valendesigns.com | |
*/ | |
add_filter( 'show_password_fields', 'baw_prr_i_am_admin' ); | |
add_filter( 'allow_password_reset', 'baw_prr_i_am_admin' ); |