User contact info – modify

QR:  User contact info – modify

For as long as I can remember, WordPress has had three social links included within the user profile section. These are ‘Aim’, ‘Yim’ and ‘Jabber’.

Now, I am not saying these are not useful, but to be honest, in all my work with WordPress over the years – dealing with literally thousands of clients – I have never seen anyone use them.

Anyway, there is now a better option, namely, the ability to add your social contact details for Facebook, Twitter and LinkedIn.

All you need to do is add the following to your functions.php and the next time you visit your profile you will find that the old have been replaced with the new.

function extra_contact_info($contactmethods) {
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
$contactmethods['facebook'] = 'Facebook';
$contactmethods['twitter'] = 'Twitter';
$contactmethods['linkedin'] = 'LinkedIn';
 
return $contactmethods;
}

add_filter('user_contactmethods', 'extra_contact_info');

Leave a Reply