Created
October 1, 2012 05:42
-
-
Save davemac/3809674 to your computer and use it in GitHub Desktop.
WordPress remove old contact methods, add Twitter
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
// Remove obsolete user contact info and add new | |
function dmc_new_contactmethods( $contactmethods ) { | |
// Remove these | |
unset($contactmethods['aim']); | |
unset($contactmethods['yim']); | |
unset($contactmethods['jabber']); | |
// Add Twitter | |
$contactmethods['twitter'] = 'Twitter'; | |
return $contactmethods; | |
} | |
add_filter( 'user_contactmethods', 'dmc_new_contactmethods',10,1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment