Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to get the logged in user\'s email address.


  • ryanram99
    Participant

    @ryanram99

    How do you display the user’s email address? This is the code I have but it doesn’t work.

    `global $bp;`

    function bp_member_user_email() {
    echo $bp->bp_get_member_user_email();
    }

    $bp->bp_member_user_email();

Viewing 2 replies - 1 through 2 (of 2 total)

  • danbpfr
    Participant

    @chouf1

    Where do you want to show these emails, and why ? If you are admin you can consult your user list whitch contains their mails from the dashboard.
    Be also warned that showing publicly user emails is mostly considered as a privacy violation.

     

     


    bp-help
    Participant

    @bphelp

    I agree with @chouf1 this is a violation of your users privacy. You as an admin already have access to this info and publicly displaying this info is a violation of user privacy and very irresponsible, and it will welcome a potential lawsuit if it is not implicitly stated in your privacy policy that the users email address will be public access. I would strongly advise you to reconsider and perhaps consult an attorney before you ever do such a thing. If you do its on you my friend. Sorry, but that is your safest bet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get the logged in user\'s email address.’ is closed to new replies.
Skip to toolbar