Hello Stack Ideas
I am using Groups to display videos and let people answer questions.
I had a developer write a plugin so that when a users buys a product he gets invited into an ES Group.
The heart of this plugin was some code that Mark kindly posted:
$group = ES::group($groupId);
$group->createMember($user->id, true);
After development and testing of said Plugin this works perfectly.
The thing is that having purchased access to the group (essentially purchasing an invite) a user can then go and invite another user.
I know that this is a Private invite Group and that is a good thing.
It is just that I want to be able to control the invites via Hika Shop.
And not have users inviting other user to join.
Is there a way to prevent/block users from inviting other user to join a group.
Whilst NOT* breaking my plugin that essentially lets Hika Shop invite people to join a group after purchase.
If possible only for Groups in the Category "Study Groups"
https://finalbug.net/groups-learn-post-production-socially-fcpx-and-more/categories/11-studygroups/latest
thanks
Paul
*Apologies about the capitals but this is the mission critical part