Hello Darshan,
Thank you for the clarification. It was the “BuddyPress Auto Join Groups” plugin which is overriding the custom code functionality. For now, I have deactivated “BuddyPress Auto Join Groups” and “BuddyPress Auto Join Groups Sync”. Please give it a shot now.
Regards
RaviHi Ravi,
It does work when saving the profile. However, as we started initially would like to update group subscription/unsubscription via automated cronjobs so if we can find a solution for it that would be great. Groups will be determined by admin and user will not have choice which group to join or not.
Thanks for your help so far
Hi Darhsan,
Currently, the profile field acts as the source of groups.You have used group id in the profile field and the code shared previously uses that as the only definitive source for the groups.
also, you no longer need the cron job, in order to automate, all you need to do is update user’s profile field with the new group ids.
Regards
BrajeshHi Darshan,
Thank you for confirming.Please feel free to open a new topic if you face any issue in future.
Regards
Brajesh
You must be logged in to reply to this topic.