WPLMS 4 can automatically mark unit complete on scroll or on Video completion. However, if you want to mark complete the unit as soon as it is loaded. Use this tip :
Add following code in WP admin – WPLMS – Footer – Analytics code :
<script>document.addEventListener(‘unit_loaded’,function(){document.querySelector(‘.next_curriculum_item’).click();});</script>
Or add in child theme – functions.php
add_Action(‘wp_footer’,function(){
?><script>document.addEventListener(‘unit_loaded’,function(){document.querySelector(‘.next_curriculum_item’).click();});</script><?php
});
Working video :
https://drive.google.com/file/d/15RJFD72T9SNTCy_y16S4kIWu_IolbjP-/view?usp=drivesdk