Created
May 4, 2015 18:51
-
-
Save thebeckyhamm/936657844640667f504b to your computer and use it in GitHub Desktop.
removes / modifies user profile fields
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) { | |
// Remove old fields | |
unset($profile_fields['twitter']); | |
unset($profile_fields['googleplus']); | |
unset($profile_fields['facebook']); | |
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