Saturday, February 18, 2012

Extra contact methods to user profiles in wordpress

How to Add extra contact methods to user profiles in Wordpress

The following simple way you can do this , For this Paste the following code into function.php fille and then edit the line 4 and 5 as require.

add_filter('user_othercontactmethods', 'my_user_othercontactmethods');

function my_user_othercontactmethods($user_othercontactmethods){
  $user_othercontactmethods['facebook'] = 'Facebook Username';
  $user_othercontactmethods['twitter'] = 'Twitter Username';

  return $user_othercontactmethods;

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off