Skip to content

Instantly share code, notes, and snippets.

@alexpos
Created May 31, 2013 12:28
Show Gist options
  • Save alexpos/5684673 to your computer and use it in GitHub Desktop.
Save alexpos/5684673 to your computer and use it in GitHub Desktop.
WP: Add contact info to user profile - remove
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