Return to Snippet

Revision: 54803
at January 12, 2012 10:13 by morg7801


Initial Code
function add_myExtra_ContactMethod( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
// Add Facebook
$contactmethods['facebook'] = 'Facebook';
 
//Remove Jabber / Google Talk
unset($contactmethods['jabber']);
 
return $contactmethods;
}
 
add_filter('user_contactmethods','add_myExtra_ContactMethod',10,1);

Initial URL
http://www.readers-cafe.net/2011/01/how-to-add-extra-contact-info-or-remove-existing-info-from-wordpress/

Initial Description
Here is one more field which you may want to add to use in Authors profile display and that is for gender. Gender info you can later use to write “His/He” or “Her/She” in general description. For this just add something like this in above mentioned code -
Code Example:

// Add Gender
$contactmethods['sex'] = 'Sex (male/female)';

Initial Title
How to Add Extra Contact Info or Remove Existing Info from WordPress

Initial Tags

                                

Initial Language
PHP