• Resolved abatjour3407

    (@abatjour3407)


    In order to integrate this solution with a membership management website that I am building (without other plugins), I need to be able to edit user data or add user data to the table prflxtrflds_user_field_data.

    I’ve noticed that when I delete user data from the user editor in the admin panel it shifts all entries around so that the ids in this table are continuous without gaps and each user’s data is clustered together. I could try an mimic this because there must be a reason for it but is there an easier, built in way to edit user data using PHP Snippets?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    The plugin works so that old data is deleted, and new data is written, so the identifiers are continuous.
    You can edit data in the admin panel in each user’s profile.

    Editing via PHP script will be difficult. We first get the required field ID’s from our other tables. Then fill them with data from prflxtrflds_user_field_data, and then when saving, fill the prflxtrflds_user_field_data table with the new data, saving the field ID from our other tables.

    Without the correct field ID values, you will not be able to correctly write data to the prflxtrflds_user_field_data table. We do not recommend this method.

Viewing 1 replies (of 1 total)
  • The topic ‘Use PHP to edit/delete/create user data entries’ is closed to new replies.