[Plugin: User Access Manager] Advanced Use of UAM (Automation of Subscriber Roles)
-
Hi
I need to automate the assignment of WP users to UAM groups. Manually assigning each user is not an option (there are way to many and more every day).
The Role Affiliation will not work for this task, as all users are subscribers… and all users can not be given access to all/or even some posts.
From what i can see in the settings of UAM there is no way to do this… however, I am sure there is a way for those of us that have some PHP skills to tap the UAM Class files to achive what we need.
Here is my situation>
We have a range of users for our website content.
All subscribers have access to a small number of pages (This is controlled by a UAM Group)
Then, various subscribers are added/remove to additional groups based on purchases, product demos, refunded purchases, etc
I need to automate the process of adding an existing user/subscriber to an existing UAM Group when a new purchase/software download/etc event occurs.
How can this be accomplished?
I assume that I would first need to:
1) query the WP User table for the Users ID
2) query the UAM table for a list of groups
3) parse WPUserID and the UAM Group of choice to an update() function in one of the UAM Class.php files.Can anyone point me in the right direction?
https://www.ads-software.com/extend/plugins/user-access-manager/
- The topic ‘[Plugin: User Access Manager] Advanced Use of UAM (Automation of Subscriber Roles)’ is closed to new replies.