Skip to content

Instantly share code, notes, and snippets.

@rugor
Created April 19, 2013 03:36
Show Gist options
  • Save rugor/5417969 to your computer and use it in GitHub Desktop.
Save rugor/5417969 to your computer and use it in GitHub Desktop.
PHP: Wordpress functions.php remove aim yim and jabber fields replace with facebook twitter
// Remove AIM YIM and Jabber, replace with Facebook, Twitter
function extra_contact_info($contactmethods) {
unset($contactmethods['aim']);
unset($contactmethods['yim']);
unset($contactmethods['jabber']);
$contactmethods['facebook'] = 'Facebook';
$contactmethods['twitter'] = 'Twitter';
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