Add Extra Fields to User Profile Page

 In Wordpress Admin

Add Extra Fields to User Profile Page

Hack: Extra User Details

WordPress is still living in the stone age with its contact forms in the User Profile section (AIM? Yahoo IM?). Fortunately, you can add more current contact methods with this simple code snippet:

add_filter('user_contactmethods', 'my_user_contactmethods');

function my_user_contactmethods($user_contactmethods){

$user_contactmethods['twitter'] = 'Twitter Username';
$user_contactmethods['facebook'] = 'Facebook Username';

return $user_contactmethods;

As you can see, each new contact method just needs a name and a label.


Recent Posts

Leave a Comment

Start typing and press Enter to search