This function removes these fields from the Contact Info section of the WordPress user profile admin page:
AIM
Yahoo IM
Jabber/Google Talk
// Remove Silly Contact Methods function removesilly_contactmethods( $contactmethods ) { // here you could add other fields unset($contactmethods['yim']); // Remove Yahoo IM unset($contactmethods['aim']); // Remove AIM unset($contactmethods['jabber']); // Remove Jabber return $contactmethods; } add_filter('user_contactmethods','removesilly_contactmethods',10,1);
If you want to add fields for users to enter their Facebook profile URL, and their Twitter, and Google Plus, take the following code, and insert it into line 4 in the code above.
$contactmethods['facebook'] = 'Facebook'; // Add Facebook $contactmethods['twitter'] = 'Twitter'; // Add Twitter $contactmethods['gplus'] = 'Google+'; // Add Google Plus
yoldaolmak.com
December 15th, 2012 at 3:34 am
Really like this, and glad I’ve found it! Definitely going to use it on my WordPress installs.