Created
January 2, 2013 15:36
-
-
Save WebEndevSnippets/4435386 to your computer and use it in GitHub Desktop.
WordPress: Change Contact Methods in User Profile
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
add_filter( 'user_contactmethods' , 'webendev_change_contactmethods' , 11 , 1 ); | |
/** | |
* Change Contact Methods in User Profile | |
* | |
*/ | |
function webendev_change_contactmethods( $contactmethods ) { | |
// Add Contact Methods | |
$contactmethods['twitter'] = 'Twitter ID'; | |
$contactmethods['facebook'] = 'Facebook ID'; | |
$contactmethods['googleplus'] = 'Google+'; | |
$contactmethods['linkedin'] = 'LinkedIn'; | |
$contactmethods['pinterest'] = 'Pinterest'; | |
$contactmethods['amazonauthor'] = 'Amazon Author Page'; | |
// $contactmethods['flickr'] = 'Flickr'; | |
// $contactmethods['googletalk'] = 'Google Talk'; | |
// $contactmethods['youtube'] = 'YouTube'; | |
// $contactmethods['stumbleupon'] = 'StumbleUpon'; | |
// $contactmethods['google_profile'] = 'Google Profile URL'; | |
// $contactmethods['gmail'] = 'Gmail'; | |
// Remove Contact Methods | |
unset( $contactmethods['aim'] ); | |
unset( $contactmethods['yim'] ); | |
unset($contactmethods['jabber']); | |
unset($contactmethods['reddit']); | |
unset($contactmethods['msn']); | |
unset($contactmethods['youtube']); | |
unset($contactmethods['vimeo']); | |
unset($contactmethods['picasa']); | |
unset($contactmethods['flickr']); | |
unset($contactmethods['delicious']); | |
return $contactmethods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment