Created
April 19, 2013 03:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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