Skip to content

Instantly share code, notes, and snippets.

@sharpmachine
Created January 8, 2013 19:41
Show Gist options
  • Select an option

  • Save sharpmachine/4487221 to your computer and use it in GitHub Desktop.

Select an option

Save sharpmachine/4487221 to your computer and use it in GitHub Desktop.
Add this to functions.php to unset and add fields in the user profile section in the backend.
function extra_contact_info($contactmethods) {
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
$contactmethods['facebook'] = 'Facebook';
$contactmethods['twitter'] = 'Twitter';
$contactmethods['linkedin'] = 'LinkedIn';
$contactmethods['googleplus'] = 'Google+';
return $contactmethods;
}
add_filter('user_contactmethods', 'extra_contact_info');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment