Previous values on pdb-after_submit_update?
-
When using the
pdb-after_submit_update
filter, is there any (simple) way to access the previous values of the participant before it was updated? (similar to how WordPress provides the$old_user_data
in the profile_update)I am trying to keep the email addresses from PDB and WP in sync. I was able to use the
profile_update
mentioned above to update PDB when user changes their email in WP. But to update WP when PDB changes doesn’t seem to be that simple.I can’t use the tutorial explained here because in my site the users sign up for PDB before signing up for WP.
I also don’t want to use
pdb-before_submit_update
because there might be errors in the submission and the information might not have been saved at this point.I thought of creating a user meta field in the WP user when they sign up to save the PDB_ID (and use it to retrieve the WP user when the PDB user is updated), but I wanted to ask here just in case there is a simpler solution. Is there? ??
- The topic ‘Previous values on pdb-after_submit_update?’ is closed to new replies.