Created
February 3, 2012 07:29
-
-
Save Steven-Rose/1728768 to your computer and use it in GitHub Desktop.
WP: Remove extra contact methods from user info
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
function remove_contact_methods( $contact_methods ) { | |
unset($contact_methods['yim']); // Remove Yahoo IM | |
unset($contact_methods['aim']); // Remove AIM | |
unset($contact_methods['jabber']); // Remove Jabber | |
return $contact_methods; | |
} | |
add_filter('user_contactmethods','remove_contact_methods',10,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment