Skip to:
Content
Pages
Categories
Search
Top
Bottom

Xprofile Update keep the ID of field and children field

  • Avatar of harryko
    harryko
    Participant

    @harryko

    Hi,
    I’ve a problem with xprofile update/delete.
    When you update your xprofile field, buddypress delete the entry in your database
    and insert a new entry, so the field has a new ID.
    This is the same think with selectbox.
    If you modify a children field, it deletes all the children from database and then
    create new entries.
    I’m using for a custom plugin, the id of the field to display data.
    So when admin delete, my plugin doesn’t find the field.
    How can I prenvent from buddypress delete, or hook before and disable this function.

    Thanks in advance
    Harry

Viewing 1 replies (of 1 total)
  • Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    Don’t use ‘id’ in your plugin, use ‘field_id’ instead.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.