Hope you can please help, or advise...
With some help my purchase user sync plugin is doing as it should and syncing users. However the ID for each user is different on each website. I'm guessing this is normal, however if i want to collect "current user" date from my database. My 2nd (slave) website uses the same database (but uses a different table prefix).
My aim is to assign data from website 2 using "$current_user". Is there a way i can achieve this with something other than $current_user->ID to access data when website 2 uses prefix2_mytables (e.g. prefix2_users) and website 1 uses prefix1_mytables (e.g. prefix1_users)?
Maybe too general a question for this forum, but wondering if possible and what the best method might be.
Initially i'd looked at sharing the same user and usermeta tables for both sites (e.g. , but with this manual approach i can't copy across roles.
Any thoughts would be greatly welcome as the plugin is working almost as i'd like it.