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
This reply has been marked as private.
This reply has been marked as private.
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);
This reply has been marked as private.
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
This reply has been marked as private.
This reply has been marked as private.