Created
May 31, 2013 12:28
-
-
Save alexpos/5684673 to your computer and use it in GitHub Desktop.
WP: Add contact info to user profile - remove
This file contains hidden or 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
function modify_contact_methods($profile_fields) { | |
// Add new fields | |
$profile_fields['twitter'] = 'Twitter Username'; | |
$profile_fields['facebook'] = 'Facebook URL'; | |
$profile_fields['gplus'] = 'Google+ URL'; | |
// Remove old fields | |
unset($profile_fields['aim']); | |
return $profile_fields; | |
} | |
add_filter('user_contactmethods', 'modify_contact_methods'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment