Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] How do display wordpress email in buddypress profile?

@sbrajesh

Participant

Hi,
It is easy to do that.
Here is a function, you can put it in your bp-custom.php or your theme’s functions.php


function devb_show_displayed_user_email() {
	
	if( ! bp_is_user() )
		return ;
	
	$user_email = bp_get_displayed_user_email();
	
	echo "<a href='mailto:{$user_email}'>{$user_email}</a>";
}

And you can call it on the user profile like this


<?php devb_show_displayed_user_email();?>

and It will show the email as links.

Hope that helps.

Skip to toolbar