X

Remove personal options from user profiles

Adding this snippet to the functions.php of your wordpress theme will remove the personal options from users profiles.


( example screenshot )

Code Snippet:


function hide_personal_options(){
echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h3:first\').hide(); $(\'form#your-profile > table:first\').hide(); $(\'form#your-profile\').show(); });</script>' . "\n";
}
add_action('admin_head','hide_personal_options');

Comments  Leave a Reply

  1. Any idea why I get the white screen when using this? I just want to remove the More information link to wp from the profile? Thanks

  2. This doesnt work for me

    1. Just tested this in 3.8 and it works perfectly as expected.

  3. it works, thanks

  4. It works nicely. However, it would be great to allow certain user  groups (like the admin) to have their full options show. 

    1. if ( !current_user_can( ‘administrator’ ) ) {
      add_action(‘admin_head’,’hide_personal_options’);
      function hide_personal_options(){
      echo “n” . ‘jQuery(document).ready(function($) { $(‘form#your-profile > h3:first’).hide(); $(‘form#your-profile > table:first’).hide(); $(‘form#your-profile’).show(); });’ . “n”;
      }
      }

  5. How to Simplify WordPress Profiles By Removing Personal Options October 31, 2011 at 12:30 pm

    […] for this little hack goes to our friends at wpsnipp.com, originally posted by Kevin […]

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!