function DisplayedUserEmail() {
global $bp;
echo $bp->displayed_user->userdata->user_email;
}
add_action( ‘bp_before_member_header_meta’, ‘DisplayedUserEmail’ ); // find the appropriate action where to you want to hook the action
function getDisplayedUserEmail() {
global $bp;
global $wpdb;
$id = $bp->displayed_user->id;
$request = “SELECT * FROM $wpdb->users WHERE ID =” . $id . “”;
$result = $wpdb->get_row($request, ARRAY_A);
return $result;
}
Here is a possible solution. Just copy/paste into either function.php or bp-custom.php. I had to this through database query, because I could not find a bp-function for this, or none of them worked for me.
I’m not a PHP coder so If you can simplify the code, or do it better, feel free to modify it.
You have to call this function in ‘profile-loop.php’. You can find that in members/single/profile/ template folder.
You can call it after the endwhile or whereever you want.
I have the same question as @intimez mentioned above. Is it possible with OQP to submit post to frontpage and before it appears, admin can review the post first?