Hello, I've recently started a topic regarding how to use invite codes for access to a specific level (and not for a more basic level), but couldn't get a solution yet. Nevermind.
I almost did it, using a totally different system for registration and not using invite codes at all. I'm planning to use Gravity Forms, validating a field against a database table, in order to add a user to the correct level.
(that's why I open a new topic: only the final goals is the same, I'm discussing a totally different technique now)
I'm just stuck at the final point: to make my system work, I need to be able to select the membership level based on user meta.
What value/key should I use? I've looked into the database, but I can find anything clearly self-explanatory.
My GUESS is that the meta key is "current-membership-step" , and the correct value is numeric, i.e. the ID of the membership level as shown in the db table named "m_membership_levels".
I have 2 levels: BASIC and PRO.
BASIC has ID=1
PRO has ID=2
To add a user to the PRO level via user meta, I'd set the user meta key like this:
"current-membership-step" = 1
1) is my theory correct?
2) even if it is, I'm worried about 2 other meta keys
I need to know whether those 2 keys need to be set manually, or are auto-generated by your plugin when a user is registered with the described system.
Or, eventually, if the plugin is unable to serve my purpose, even with my method.
In which case, please share with me the complete list of database tables, as it would prove unfit to serve my only need for this website.
If my question is not 100% clear, please let me know and I'll provide more infos.
Sorry for the loooong post and thanks a lot in advance for your help.