Private Course label appears in the WPLMS for courses which do not have connected WooCommerce Product or PMPro membership or MyCred points
In this tip we’ll connect the Private Course button with a custom page.
0. Install the WPLMS Customizer plugin.
1. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
2. Add following code in the _construct function:
PHP Code:
add_filter('wplms_private_course_button',array($this,'wplms_private_course_button'),1,1);
3. Add following code in the class :
PHP Code:
function wplms_private_course_button($link){ return 'http://google.com'; }
change google.com to your Custom Page Link