How To Add Facebook, Twitter, LinkedIn, And Google Plus To WordPress User Profiles (Custom Contact Info)

Add Relevant Social Media To WordPress User Profiles

By default the contact info in WordPress user profiles only gives the options to include AIM, Yahoo IM, and Jabber/Google Talk to registered WordPress users, as well as your own website and required email address information. But… the truth is, with some exceptions AOL Instant Messenger (AIM), Yahoo, and Jabber are not as popular these days as much as Facebook, Twitter, Google Plus, and LinkedIn are.

Change WordPress Contact Info

As the internet evolves other social media websites become relevant. Removing the AIM, Yahoo IM, and Jabber/Google Talk options and replacing them with updated social media accounts Facebook, Twitter, Google+, and LinkedIn makes a lot more sense. After all, Facebook, Twitter, LinkedIn, and Google Plus are in the top 5 most used social networks right now (Myspace being #4, people still use it).

WordPress Facebook Twitter LinkedIn Google Plus User Profiles

How To Add Facebook, Twitter, Google+, And LinkedIn To User Profiles With PHP

Below we outline an easy PHP snippet to change AIM, Yahoo IM, and Jabber/Google Talk to Facebook, Twitter, Google Plus, and LinkedIn to the WordPress user profile contact info.

Down Copy and paste the PHP snippet below into your functions.php file.

function extra_contact_info($contactmethods) {

unset($contactmethods['aim']);

unset($contactmethods['yim']);

unset($contactmethods['jabber']);

$contactmethods['facebook'] = 'Facebook';

$contactmethods['twitter'] = 'Twitter';

$contactmethods['linkedin'] = 'LinkedIn';

$contactmethods['googleplus'] = 'Google+';

 

return $contactmethods;

}

add_filter('user_contactmethods', 'extra_contact_info');
Theme Functions Example:

Add WordPress Extra Social Contact Theme Functions

Sean Doyle

Sean is a distinguished tech author and entrepreneur with over 20 years of extensive experience in cybersecurity, privacy, malware, Google Analytics, online marketing, and various other tech domains. His expertise and contributions to the industry have been recognized in numerous esteemed publications. Sean is widely acclaimed for his sharp intellect and innovative insights, solidifying his reputation as a leading figure in the tech community. His work not only advances the field but also helps businesses and individuals navigate the complexities of the digital world.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.