Scroll Down
/**
* code #8 - add & remove custom WordPress social contacts from user profile
* source - http://wordpress.stackexchange.com/a/4125/8922
* @param array
* @return array
*/
function cusom_social_contact_links($contacts) {
// Adding
$contacts['twitter'] = 'Twitter';
$contacts['youtube'] = 'YouTube';
$contacts['dribbble'] = 'Dribbble';
// Removing
unset($contacts['yim']);
unset($contacts['aim']);
unset($contacts['jabber']);
return $contacts;
}
add_filter('user_contactmethods','cusom_social_contact_links', 10, 1);
Once you log into the WordPress admin panel and find your profile page you will notice some extra contact fields. Users may fill out their own details for profiles such as Skype or Twitter. Using this code you may customize your own fields to include other methods of communication, or even other social media profiles.