Viewing 2 replies - 1 through 2 (of 2 total)
  • @jeneu70,

    Try the following. Inline documentation on the class & functions can be found in the codebase at “includes/class.llms.student.php”

    $student = new LLMS_Student( get_current_user_id() ); // you can substitute this with any user id, it doesn't have to be the current user if you don't want
    $levels = $student->get_membership_levels(); // this is an array of membership level ids

    Your $levels array will be an array of membership Level IDs which are, in reality, your Membership Custom Post type IDs.

    Hope that helps,

    @jeneu70,

    Marking this thread as resolved due to inactivity.

    If you require further assistance please let us know and have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Membership in PHP’ is closed to new replies.