Can I change the membership level via code for Membership plugin

I need to be able to change a users membership level from a custom plugin I am creating. It's a quiz and when they pass it, their membership level changes.

how can I invoke a change in the users level in PHP?

  • Tyler Postle

    Hey there Dan,

    Hope you're doing well today! Welcome to the WPMU DEV Community.

    As you know, this is going to require some custom development to achieve.

    Would you be able to redirect them after they complete/submit the quiz? Perhaps then you could just redirect them to the specific level sign up url and automatically sign them up right after completion :slight_smile:

    If that won't work for you then you may want to post this on our jobs board:

    That way you can work with on it with another talented member of the community to get it developed :slight_smile:

    Let us know if you have any further questions on this!

    All the best,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.