Add contact methods to profile, Twitter, Facebook, Flickr

Adding this to the functions.php of your wordpress theme will add Twitter, Facebook, Linkedin and Flickr contact info fields to users profiles. This will also remove aim, yim and jabber fields from user profile pages.

 

 

function add_remove_contactmethods( $contactmethods ) {
$contactmethods['twitter'] = 'Twitter';
$contactmethods['facebook'] = 'Facebook';
$contactmethods['linkedin'] = 'Linked In';
$contactmethods['flickr'] = 'Flickr';
// this will remove existing contact fields
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
return $contactmethods;
}
add_filter('user_contactmethods','add_remove_contactmethods',10,1);

Leave a comment