One of my clients request me to remove the forgot password and password reset field from the user profile page except admin. I started editing the user-edit.php file to comment the those lines for normal users. But i feel this is not the best way to do it. so i start searching Google and found the below plugin to disable those two options for users.
Just copy the code from the below link and save the file in the plugin folder, don’t forget to close(?>) the php tag which is missing in the above link. Login as admin and activate the plugin, that’s it. After activating this plugin, normal user won’t get the option to update the password or request to change the password. So in future if you want to enable this for user, just disable this plugin. If i go with my solution then i have to edit the page to enable it again.
Only problem with this code, when admin forget his password himself, he don’t have option to reset it. He have to do manually in phpmyadmin or some other way.
Hope this will be useful for someone who have similar requirement.
Thanks to Derek Herman who contribute this plugin.