Isabel Castillo

Web Developer • I ♥ PHP

Remove Aim, Yahoo IM, Jabber Contact Info From WordPress Profile

This function removes these fields from the Contact Info section of the WordPress user profile admin page:
AIM
Yahoo IM
Jabber/Google Talk

// Remove Silly Contact Methods

function removesilly_contactmethods( $contactmethods ) {
// here you could add other fields
  unset($contactmethods['yim']); // Remove Yahoo IM
  unset($contactmethods['aim']); // Remove AIM
  unset($contactmethods['jabber']); // Remove Jabber

return $contactmethods;
}

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

If you want to add fields for users to enter their Facebook profile URL, and their Twitter, and Google Plus, take the following code, and insert it into line 4 in the code above.

$contactmethods['facebook'] = 'Facebook'; // Add Facebook
$contactmethods['twitter'] = 'Twitter'; // Add Twitter
$contactmethods['gplus'] = 'Google+'; // Add Google Plus
Isabel Castillo Miami

About Isabel

I'm a web developer/PHP programmer. When I'm not complaining that "this was all fields," I can be found on my machine optimizing some sweet code. I hope I'm not violating a WordPress copyright when I say that code is poetry. See my code journal for useful snippets.

One Response

  1. Really like this, and glad I’ve found it! Definitely going to use it on my WordPress installs.

    yoldaolmak.com

    December 15th, 2012 at 3:34 am

Questions and Comments are Welcome

Your email address will not be published. Required fields are marked *


+ 5 = fourteen

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify via Email Only if someone replies to My Comment




Remove Aim, Yahoo IM, Jabber Contact Info From WordPress Profile, 5.0 out of 5 based on 2 ratings