Developer API’s and Data Location
-
Hello,
I need assistance with the developer API’s. I am new to WordPress programming.
I am trying to put a user into a certain group once they register, but the group they get access to is based on their domain name. I believe I have that part figured out, but I’m not sure what code to use to add a user to a specific group for this plug-in.
The developer API I believe I would use is “add_level(int $level_id):bool”, but I’m not sure what to put for the $level_id. Also I’m not sure if I’m supposed to replace “bool” with True or False (for Boolean).
I have five groups that a user could be put into. Platinum, Gold, Silver, Bronze and Blocked.
Also I was having trouble finding the data that shows what group a user is in (in the database). That would also be useful information.
Thank you.
- The topic ‘Developer API’s and Data Location’ is closed to new replies.