Free Course auto-subscribe restrict with Take this course in one click

Add this code snippet in Child theme -functions.php or WPLMS Customizer plugin – wplms_customizer.php

 

add_action(‘wp_footer’,function(){
if(is_singular(‘course’) && isset($_GET[‘subscribe’])){
echo ‘<script>jQuery(“.widget.pricing form”).submit();</script>’;
}
});

 

Video :https://www.screencast.com/t/vCQXZ0h1

Was this article helpful?

Leave A Comment?