I need a functiom to know the user's current courses

Home Forums General [ No Support Zone ] Feature Request I need a functiom to know the user's current courses

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2374
    selmaandrade
    Spectator
    I need a functiom to know the user's current courses I need a function to get the user's current course to create a custom role
    if ( is_user_logged_in() ){
    $users = get_courrent_course();
    }
    
    Something to show if user is logged in and what the courrent course
    #3831
    Anshuman Sahu
    Keymaster
    Already available in wplms  : "   $user_id = get_current_user_id(); bp_course_get_user_courses($user_id)  " It returns array of Course Ids . 
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘I need a functiom to know the user's current courses’ is closed to new replies.