Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created January 2, 2013 15:36
Show Gist options
  • Save WebEndevSnippets/4435386 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/4435386 to your computer and use it in GitHub Desktop.
WordPress: Change Contact Methods in User Profile
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