Notifications
Clear all

wpForo 1.x.x [Closed] How to add users to wpforo user group programmatically ?

4 Posts
2 Users
0 Reactions
2,511 Views
Posts: 2
Topic starter
(@palamika)
New Member
Joined: 7 years ago

Hi,

I would like the user to group when they purchase something in my woocommerce website. 

I already know the woocommerce hooks. However I do not know the api or function in wpforo to add user to wpforo user group.

Is the user group is just a user meta in wordpress ?

If it is what is the meta key I need to use ?

or Do I need to add some more extra step to add user to wpforo user group ?

Please help suggest.

3 Replies
Robert
Posts: 10590
Admin
(@robert)
Support Team
Joined: 9 years ago

wpForo already does this. When user register on checkout page and purchase a product he/she automatically get Customer usergroup. This example you can see on gVectors Team Store here:

https://gvectors.com/forum/wpforo-advanced-attachments/uploader-do-not-work/

As you can see the user Usergroup is Customer (orange badge under avatar).

Posts: 2
Topic starter
(@palamika)
New Member
Joined: 7 years ago

Thank You for Reply.

I already know about the customer group however I need to add the user to the other specific user group since I have many products each product will provide access to specific forum only.

Is there API or function according to this scenario ?

Robert
Posts: 10590
Admin
(@robert)
Support Team
Joined: 9 years ago

I'm really sorry but i have no clue for you.