/ Published in: PHP
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)';
Expand |
Embed | Plain Text
function add_myExtra_ContactMethod( $contactmethods ) { // Add Twitter $contactmethods['twitter'] = 'Twitter'; // Add Facebook $contactmethods['facebook'] = 'Facebook'; //Remove Jabber / Google Talk return $contactmethods; } add_filter('user_contactmethods','add_myExtra_ContactMethod',10,1);
You need to login to post a comment.
