BuddyDev

Search

Get user firstname last name in edit form

  • Participant
    Level: Enlightened
    Posts: 26
    Ahmed on #27604

    Hi,
    I don’t use the buddypress registration process, i use ultimate membership pro to register user firstname and lastname.
    In the buddypress area i can see user’s information (firstname lastname), but when i update profile to set buddypress xprofile informations, the field name is empty.
    How to auto save buddypress field name if the user’s firstname lastname is present in database?

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #27607

    Hi Ahmed,
    You need to the the data for xprofile field id 1. You can use xprofile_set_field_data() function for that but you will need a hook from ultimate membership pro to decide when you want to sync this data.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 26
    Ahmed on #27609

    Hi Brajesh,
    Thanks for your help, the team of ultimate membership pro sended me the hook (ump_on_register_action), I will do that, thank you.

    Regards
    Ahmed

    • This reply was modified 4 years, 9 months ago by Ahmed.

You must be logged in to reply to this topic.

This topic is: not resolved