Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using Wordpress 3.1. I need to forbid users to change their first, last and screen names in their profile, but admin must still have this possibility. How can I do that?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Have a look at this question - Preventing users from changing their email address.

share|improve this answer
I've added <?php if (!current_user_can('manage_options')) print ('disabled="disabled"') ?> to input tags. – post-factum Mar 31 '11 at 9:24
@post-factum it wont save if you would submit a post request. – ilovewordpress Mar 31 '11 at 10:43
@ilovewordpress But it works for me. – post-factum Apr 4 '11 at 10:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.