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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

 
discard

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.