Title: Remove some profile fields
Last modified: August 19, 2016

---

# Remove some profile fields

 *  [Matthew](https://wordpress.org/support/users/serpico/)
 * (@serpico)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/)
 * Hi All
 * I am using the Customize Your Community WordPress Plugin, to allow users to register,
   login and edit their profile. However, I do not want the following fields on 
   the User profile. Can anyone recommend a way to remove them without having to
   lose the modification on upgrade.
 * The fields I want to remove are:
 * * Website
    * AIM * Yahoo IM * Jabber/ Google Talk * Biographical Info
 * Thanks in advance!

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/remove-some-profile-fields/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-some-profile-fields/page/2/?output_format=md)

 *  [croila](https://wordpress.org/support/users/croila/)
 * (@croila)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165533)
 * Hi, if anyone has written a plugin to hide these fields, I’d love to hear about
   it too as I always have to remove them manually which is a bit of a pain when
   it comes to upgrading!
 * Kind regards
    Croila
 *  Thread Starter [Matthew](https://wordpress.org/support/users/serpico/)
 * (@serpico)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165534)
 * In the end I used CYC and editted their custom profile file.
 *  [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165560)
 * The only way I’ve found is to use jQuery. I’m adding some custom fields using
   the edit_user_profile hook. So, at the start of the code that my function drops
   in at the end, I include something like this. I’m not using the `jQuery( document).
   ready` method so the code runs asap.
 *     ```
       <script type="text/javascript">/* <![CDATA[ */
       var hideFields = [ "aim", "yim", "jabber" ];
       jQuery.each( jQuery( "form#your-profile tr" ), function() {
       	var field = jQuery( this ).find( "input,textarea,select" ).attr( "id" );
       	if ( hideFields.indexOf( field ) != -1 ) {
       		jQuery( this ).remove();
       	}
       });
       /* ]]> */</script>
       ```
   
 * I’m doing other stuff, like slipping custom fields between built-in fields, but
   this is the basic method. Also, having the script inline means you can conditional
   write JS with PHP.
 * Sorry for anyone not writing plugins or developing themes – I’ve not wrapped 
   any of this up into a plugin, it’s just for functions.php in a custom theme.
 *  [Erum](https://wordpress.org/support/users/erum/)
 * (@erum)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165570)
 * Tried this but it is not working for some reason.
 * Using WP 2.9 and JQuery 1.3.2
 *  [e-sushi](https://wordpress.org/support/users/e-sushi/)
 * (@e-sushi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165571)
 * For WP 2.9.1, you can add the following PHP code to your “functions.php” file
   in your active theme directory:
 *     ```
       function add_twitter_contactmethod( $contactmethods ) {
         unset($contactmethods['aim']);
         unset($contactmethods['jabber']);
         unset($contactmethods['yim']);
         return $contactmethods;
       }
       add_filter('user_contactmethods','add_twitter_contactmethod',10,1);
       ```
   
 * Works like a charm… and actually removes the fields instead of just “hiding” 
   them using javascript.
 * Hope that helps? 😉
 *  [Erum](https://wordpress.org/support/users/erum/)
 * (@erum)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165572)
 * Wow! Thanks! That is definitely way better. I’ll try this instead.
 *  [Tzaddi](https://wordpress.org/support/users/zodzilla/)
 * (@zodzilla)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165575)
 * I couldn’t get e-sushi’s code to work at first, then I realized it was because
   I was using an old WP install. Once I upgraded it hid those fields like a charm.
 * So, thanks!
 * I don’t get the reference to adding twitter in the function name though. It didn’t
   do that and to my eye there doesn’t seem to be anything that would do it in this
   function. Am I missing something?
 *  [croila](https://wordpress.org/support/users/croila/)
 * (@croila)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165579)
 * e-sushi, thank you SO much for posting this code! It worked beautifully for me.
 * However, I’d also like to strip out the “Website” form box and the entire “About
   Yourself” section with the biographical info box. I added into two extra lines
   of code into your function:
 * `unset($contactmethods['url']);`
 * and
 * `unset($contactmethods['description']);`
 * However, it’s not done anything. I have no idea how to remove these two items…
   Can anyone help, please?
 * Many thanks!
    Croila
 *  [binaryhotel](https://wordpress.org/support/users/binaryhotel/)
 * (@binaryhotel)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165581)
 * Any update on this? I have the same problem… Thanks for all the help btw 🙂
 *  [e-sushi](https://wordpress.org/support/users/e-sushi/)
 * (@e-sushi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165588)
 * The “unset” I showed you above will only work for those 3 contact methods. For
   the other stuff, you need other code… not nice, but that’s WordPress.
 * So, to dive in deeper: if you want to get rid of the “color options” at the top
   of the profile… simply use
 *     ```
       add_action('admin_head', 'admin_del_color_options'));
   
       function admin_del_options() {
          global $_wp_admin_css_colors;
          $_wp_admin_css_colors = 0;
       }
       ```
   
 * This overrides the number of found color schemes to 0, preventing WordPress from
   rendering that “choose your color theme” thingy.
 * Hope you’re starting to love me? 😉
 *  [Lopo Lencastre de Almeida](https://wordpress.org/support/users/ipublicis/)
 * (@ipublicis)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165589)
 *     ```
       public function add_extra_contactmethod( $contactmethods ) {
           // Add new ones
           $contactmethods['twitter'] = 'Twitter';
           $contactmethods['identica'] = 'Identi.ca';
           $contactmethods['facebook'] = 'Facebook';
           $contactmethods['netlog'] = 'Netlog';
   
           // remove unwanted
           unset($contactmethods['aim']);
           unset($contactmethods['jabber']);
           unset($contactmethods['yim']);
   
           return $contactmethods;
       }
       ```
   
 *  [zzfozz](https://wordpress.org/support/users/zzfozz/)
 * (@zzfozz)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165590)
 * Thanks e-sushi, just what I was looking for. Hope you don’t mind but I have corrected
   your 2nd code fragment for anyone who wan’t to cut ‘n’ paste.
 *     ```
       function admin_del_options() {
          global $_wp_admin_css_colors;
          $_wp_admin_css_colors = 0;
       }
   
       add_action('admin_head', 'admin_del_options');
       ```
   
 *  [zenigata](https://wordpress.org/support/users/zenigata/)
 * (@zenigata)
 * [16 years ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165592)
 * Hi,
    I have a similar problem.
 * I need to remove “Website url” from the profile field, because I don’t want external
   links in profile.
 * How can I do this? Thank you.
 *  [zenigata](https://wordpress.org/support/users/zenigata/)
 * (@zenigata)
 * [16 years ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165593)
 * In reply to my previous post, for the moment, I’ve opened /public_html/wp-admin/
   user-edit.php and deleted the following code.
 *     ```
       <tr>
       	<th><label for="url"><?php _e('Website') ?></label></th>
       	<td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
       </tr>
       ```
   
 * Is there a better way to do this without hardcoding?
 * Thanks
 *  [justbishop](https://wordpress.org/support/users/justbishop/)
 * (@justbishop)
 * [16 years ago](https://wordpress.org/support/topic/remove-some-profile-fields/#post-1165594)
 * Just wanted to say that e-sushi’s first piece of code worked for me on an install
   of 3.0 beta running in multisite mode + the latest version of Buddypress! I needed
   members to be able to add blog posts, but needed to do away with a lot of the
   admin panel profile fields so as not to confuse anyone.
 * Thanks!

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/remove-some-profile-fields/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/remove-some-profile-fields/page/2/?output_format=md)

The topic ‘Remove some profile fields’ is closed to new replies.

## Tags

 * [profile fields](https://wordpress.org/support/topic-tag/profile-fields/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 24 replies
 * 15 participants
 * Last reply from: [geezerd](https://wordpress.org/support/users/geezerd/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/remove-some-profile-fields/page/2/#post-1165604)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
