I'm creating a community platform with buddyboss pro. Assume there are 2 groups. One is called MyGroup, the other is called NotMyGroup. I want to create a list that only contains the events of the group to which the user has access. The list should only contain public events and events from the "MyGroup" group. Events of the "NotMyGroup" group should be hidden.
The shortcodes only offer the possibility of filtering events according to predefined groups. But I want the list to show all of the user's group events. Events to which the user has no access should be hidden.
How can I achieve this?