WordPress Snippets at WPcustoms

Add social links to user contact profile

unlink AOL, Jabber and Yahoo instant messager id field and replace with facebook twitter and linkedin. You can replace it with any other url you want to list i.e. youtube or reddit

 * Snippet Name: Add social links to user contact profile
 * Snippet URL: https://wpcustoms.net/snippets/add-social-links-to-user-contact-profile/
  // Usage: the_author_meta('facebook', $current_author->ID);

function wpc_custom_usercontact_info($contactmethods) { 
$contactmethods['facebook'] = 'Facebook'; 
$contactmethods['twitter'] = 'Twitter'; 
$contactmethods['linkedin'] = 'LinkedIn'; 

return $contactmethods; 
add_filter('user_contactmethods', 'wpc_custom_usercontact_info');