Posted By

morg7801 on 01/12/12


Tagged


Versions (?)

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


 / Published in: PHP
 

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

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)';

  1. function add_myExtra_ContactMethod( $contactmethods ) {
  2. // Add Twitter
  3. $contactmethods['twitter'] = 'Twitter';
  4. // Add Facebook
  5. $contactmethods['facebook'] = 'Facebook';
  6.  
  7. //Remove Jabber / Google Talk
  8. unset($contactmethods['jabber']);
  9.  
  10. return $contactmethods;
  11. }
  12.  
  13. add_filter('user_contactmethods','add_myExtra_ContactMethod',10,1);

Report this snippet  

You need to login to post a comment.