Changing Course Subscription duration parameter in Products

Follow below tip on how to change Subscription duration from Days to Hours .

Refer below images:

Backend:

Frontend:

1. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
2. Add the following code in the _construct function :

PHP Code:

add_filter('vibe_product_duration_parameter',array($this,'vibe_product_duration_parameter'));

3. Add the following code in class :

PHP Code:
function vibe_product_duration_parameter($parameter){
            $parameter = 3600;
            return $parameter;
        }

 

3600 seconds = 1 hour, the calculations are done at seconds level.