Skip to content

Instantly share code, notes, and snippets.

@LucaRosaldi
Created November 28, 2012 11:32
Show Gist options
  • Save LucaRosaldi/4160623 to your computer and use it in GitHub Desktop.
Save LucaRosaldi/4160623 to your computer and use it in GitHub Desktop.
WP: Better User Contacts
function new_contactmethods( $contactmethods ) {
$contactmethods['twitter'] = 'Twitter'; // Add Twitter
$contactmethods['facebook'] = 'Facebook'; // Add Facebook
unset($contactmethods['yim']); // Remove YIM
unset($contactmethods['aim']); // Remove AIM
unset($contactmethods['jabber']); // Remove Jabber
return $contactmethods;
}
add_filter('user_contactmethods','new_contactmethods',10,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment