Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display email in frontend


  • SrGato29
    Participant

    @jonadeis

    Hi there,

    I would like to know if there is a way to display the primary email field in the BuddyPress frontend profile, also if the user clicks on edit, they will edit the email field.

    This code display the email field but it not editable.


    function DisplayedUserEmail() {
    global $bp;
    echo "Email Address: "."". $bp->displayed_user->userdata->user_email ."";

    }

    add_action( 'bp_after_profile_field_content', 'DisplayedUserEmail' );

    Also is there a way or plugin that allows me to add a value to the radio buttons? currently is possible to edit only one value.

    I would appreciate your help.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • The user can edit his or her email address via their profile > settings tab. You could add a link to that page like you’re doing above, with a link like “Change your Email Address” or similar.

    I’m not sure what you mean about radio buttons. They should look like this:
    • Option One
    • Option Two
    • Option Three

    And those items are called “options” in the profile field manager.


    SrGato29
    Participant

    @jonadeis

    Yes but I need that users can edit their primary email in their frontend profile without links, and about the radio o or select buttons I mean something like this:

    <option value="1">One</option>

    But currently, I only can do this:

    <option value="One">One</option>

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar