Return to Snippet

Revision: 44699
at April 16, 2011 00:05 by blueocto


Initial Code
function new_contactmethods( $contactmethods ) {
  $contactmethods['twitter'] = 'Twitter'; // Add Twitter
  $contactmethods['facebook'] = 'Facebook'; // Add Facebook
  unset($contactmethods['yim']); // Remove Yahoo IM
  unset($contactmethods['aim']); // Remove AIM
  unset($contactmethods['jabber']); // Remove Jabber

return $contactmethods;
}

add_filter('user_contactmethods','new_contactmethods',10,1);ne

Initial URL


Initial Description
In the User settings, there is a web form called Contact Info. It has input fields for the user’s AIM account, Yahoo IM account, and so on.

But how about Twitter? What about Facebook? Out of the box, the Contact Info panel doesn’t have these input fields.

If you have multiple users on your WordPress blog, you might want to add new fields and remove old ones.

Initial Title
Wordpress : Change the Contact Info Form

Initial Tags
php, wordpress

Initial Language
PHP