thank you for writting this so quikcly. Can you confirm I can add this to my child theme functions.php? I can see you added the function as an action. When is this action being triggered?
I am going to test this this saturday and will let you know the outcome.
thanks you for your swift reply. I am impressed. I Have read the link you gave me and i am glad to see that we can set the type dynamically based on the user role.
One thing i had not realised (you response seems to imply) that while we assign group to a member type, that actually does not mean that another user of a different member type which does not include that group is prevented from seeing it.
Is my understanding correct?
Type A is associated to group A
Type B is associated to Group AB
Users of type A can access A but also B? If so what is the point of associating a type and a group?
Thanks again for your help and look forward to the code you come up with.