Allow only admin to change user password
-
Hello,
I have run into an issue where I cannot make it so only an admin can change a user’s password. I want it so the user cannot change their own password. Generally I used to make this change in profile.php but in WP 2.5.1 and newer, it appears that their is now a global function that if:
apply_filters('show_password_fields', true);
is set to:
apply_filters('show_password_fields', flase);
then both admin and users cannot change user passwords.
In oler versions of WordPress – this could be done so that admin would click a user name, go to their profile and be able to change the user’s password – but if a user clicked on ‘Your Profile’ they could not change their password – and this is what I am trying to do in WP 2.5.1 as well.
I appreciate any help as always…
- The topic ‘Allow only admin to change user password’ is closed to new replies.