Is there an API to get user and his/her membership information in the front-end?
In our case, we would like to filter the items of a dynamically generated menu dependent on the membership of the current user.
So in the moment of the menu-rendering, I need to know the membership of the current user and the allowed membership for a certain page-/post-id.
Is there a convenient way to get that information?
Thanks for your help!