A function that determines membership level of displayed user – Membership Plugin

Sorry this was a duplicate… see here for original