This topic contains 1 reply, has 2 voices. Last updated by Jason (Lead Developer) 3 years, 11 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday Jan 17th, 2013 at 4:46 pm #37941 | |
We’ve developed a custom reports plugin, which uses s2 member meta fields (we have roughly 100 fields per user, and 7000 users) – due to the storage of s2 meta (serialized arrays in a DB), we can’t effectively search across them without inaccurate(i.e. – doing a LIKE won’t work) or extremely long running queries (selecting and looping through PHP side), as such we’ve resorted to storing the s2 user meta into the wp_usermeta table as well – while this seems absurd to store it in two places, it’s allowed us to query the data much more efficiently, unfortunately we’ve found a few cases where the user meta does not match the s2 user meta, so there must be some way s2 is updating/inserting that we’re not catching. These are the current hooks we use to duplicate the s2 usermeta into actual user meta: Are there any other hooks that we can use to be absolutely sure when an s2 user meta field gets added or updated, we add it to regular wp usermeta? Thanks! |