- This topic has 0 replies, 1 voice, and was last updated 6 years, 10 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Developing Websites › HTML PHP Snippets › Genesis 2 Theme Framework › Genesis And BBpress – Change BBpress User Profile Social Contacts
Bbpress comes with outdated contact options in the default user profile section on the forum. I found this code on this website that adds in Facebook, Google plus, and Twitter and takes out the older not used social contacts.
function add_extra_contactmethod( $contactmethods ) {
// Add new ones
$contactmethods['twitter'] = 'Twitter';
$contactmethods['facebook'] = 'Facebook';
$contactmethods['googleplus'] = 'Google Plus';
$contactmethods['youtube'] = 'Youtube Kanal';
// remove unwanted
unset($contactmethods['aim']);
unset($contactmethods['jabber']);
unset($contactmethods['yim']);
return $contactmethods;
}
add_filter('user_contactmethods', 'add_extra_contactmethod');
See the screenshot below.
To get this I pasted the code directly into my functions.php file that is in my actual child theme.. (the theme that is installed in WordPress.
Mitz from Tips4pc