ADDING USER TO COURSE ISSUE

Home Forums Legacy Support Support queries Other issues ADDING USER TO COURSE ISSUE

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #187581
    develop.
    Spectator
    Hello, I added a user to course manually from front-end but the user stil can not access to the course. In the next message I will put all the points to reproduce the issue. Thanks
    #187582
    develop.
    Spectator
    This reply has been marked as private.
    #187583
    develop.
    Spectator
    This reply has been marked as private.
    #187748
    Anshuman Sahu
    Keymaster
    Well this issue is also related  to the make first section free setting . please try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_action('wplms_bulk_action',function ($action,$course_id,$member_ids){   if($action != 'added_students')       return;     foreach ($member_ids as $key => $member) {       update_user_meta($member ,'user_subscribed_to_partial_free_course_'.$course_id,2);     }    },10,3);
    #188974
    develop.
    Spectator
    This reply has been marked as private.
    #189051
    Anshuman Sahu
    Keymaster
    Ohh im sorry there is little mistake in the code .   correct one is : add_action('wplms_bulk_action',function ($action,$course_id,$member_ids){   if($action != 'added_students')       return;     foreach ($member_ids as $key => $member) {       update_user_meta($member ,'user_subscribed_to_partial_free_course_'.$course_id,2);     } },10,3);   Also Please remove the same user and add him back to the course  
    #189429
    develop.
    Spectator
    This reply has been marked as private.
    #189653
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘ADDING USER TO COURSE ISSUE’ is closed to new replies.