Profile Edit Timing
Posted: July 30th, 2010, 9:14 pm
Hi Jason,
I ran into something annoying. There may be nothing you can do about it, but here it is.
I entered a hook for "profile_update" to catch profile changes and update my account tables.
The trouble is that when this runs, any edits to "s2Member Custom Fields" have not yet been recorded to the database, and there seems to be no context in which they are available (the hook sends a user ID # and that's all). Regular changes (i.e. first name, last name, email) have been recorded and are available when the hook gets invoked.
Like I said, there's probably nothing you can do, but at least now you know about this issue.
I ran into something annoying. There may be nothing you can do about it, but here it is.
I entered a hook for "profile_update" to catch profile changes and update my account tables.
The trouble is that when this runs, any edits to "s2Member Custom Fields" have not yet been recorded to the database, and there seems to be no context in which they are available (the hook sends a user ID # and that's all). Regular changes (i.e. first name, last name, email) have been recorded and are available when the hook gets invoked.
Like I said, there's probably nothing you can do, but at least now you know about this issue.