Force Batch Enrollment enabled by default?

Home Forums WPLMS AddOns WPLMS Batches Force Batch Enrollment enabled by default?

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208762
    futureyoon_208
    Participant
    Hi, What should i do to make force batch enrollment button disabled by default? Everytime i create a new course, this button is enabled even when there is no batch attached with the course. screenshot: https://prnt.sc/nnfmqd
    #208922
    Scott Lang
    Moderator
    Hi, Yes we this appears when we create course from backend. There is not any setting for this .
    #208963
    futureyoon_208
    Participant
    It does not make sense to us as most of our courses do not come along with batches, we need "force batch enrollment" button to be disabled by default to avoid confusion and preventing end users from starting course (due to enroll to batch button) after purchasing the course.
    #208979
    Scott Lang
    Moderator
    Hi, You can use this code to your customizer. This will disable the force enrollment batch from backend course creation. add_filter('wplms_course_metabox',function($metabox){     $metabox['vibe_force_batch_enrolment']['std']='H';     return $metabox; },10,1);
    #209140
    futureyoon_208
    Participant
    Ah it works perfectly, thank you so much Scott! You may close this topic :)
    #209159
    Scott Lang
    Moderator
    Ok we are closing this topic . Thanks for your response.
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Force Batch Enrollment enabled by default?’ is closed to new replies.