Renaming Private Course Labels

From version 1.5.3 we’ve added a new feature called Private Labels .

You can rename the label on the button and on the Course details widget using this tip.

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_label',array($this,'wplms_private_course_button_label'),1,1);
add_filter('wplms_private_course_label',array($this,'wplms_private_course_label'),1,1);

3. Add following code in the class :

PHP Code:
function wplms_private_course_button_label($label){
            return 'Myprivate Button';
        }
 
        function wplms_private_course_label($label){
            return 'MyPrivate';
        }