function new_contactmethods( $contactmethods ) {
$contactmethods['facebook'] = 'Facebook'; // Add Facebook
$contactmethods['linkedin'] = 'Linkedin'; // Add Twitter
$contactmethods['twitter'] = 'Twitter'; // Add Twitter
$contactmethods['blog'] = 'Blog'; // Add Twitter
unset($contactmethods['yim']); // Remove Yahoo IM
unset($contactmethods['aim']); // Remove AIM
unset($contactmethods['jabber']); // Remove Jabber

return $contactmethods;
}

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

these values will store in wp_usermeta table, we can get user meta value by
For eg. retrieve facebook url stored in Users->Profile->Contact Info
$facebook_link = get_user_meta(1,'facebook',true);

Advertisements