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:

3. Add the following code in class :

PHP Code:

 

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

Was this article helpful?

Related Articles