X

How to Remove Default Profile Fields in WordPress

Snippets by IsItWP

Are you looking for a way to remove the default profile fields? While there’s probably a plugin for this, we have created a quick code snippet that you can use to remove default profile fields in WordPress.

Instructions:

All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

    add_filter('user_contactmethods','hide_profile_fields',10,1);

    function hide_profile_fields( $contactmethods ) {
    unset($contactmethods['aim']);
    unset($contactmethods['jabber']);
    unset($contactmethods['yim']);
    return $contactmethods;
    }

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 28 best WordPress resume themes and how to fix the error establishing a database connection.

Comments   Leave a Reply

  1. Thanks for this tip, it’s a big help.

    Any idea how to remove the 4 items below “Personal Options” including that options title itself?
    4 options: disable visual editor, color scheme, keyboard shortcut and admin bar.

    Got the color scheme code from you, and able to hide admin bar using css, any idea on the other 2 and the title? Or if there is a cleaner way to remove all at once using filter or remove_action?

    1. This should get rid of all the personal options for you,

      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”;
      }
      add_action(‘admin_head’,’hide_personal_options’);

      You can do this to hide admin bar,
      http://wpsnipp.com/index.php/functions-php/disable-the-new-admin-bar/

  2. Tweets that mention Wordpress Remove default profile fields – wpsnipp.com Wordpress code snippets for your blog -- Topsy.com February 24, 2011 at 10:03 am

    […] This post was mentioned on Twitter by Y Combinator Newest!, newsery5. newsery5 said: WordPress remove default profile fields – http://bit.ly/i7aCV7 – [Hacker News FH] […]

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!