Hi Kyle,
Thank you for contacting us.
Regarding your request to modify the options in the Course Settings, these customizations require code modifications as they are not available directly within the LearnPress settings.
For removing “Months” & “Years” from the “Duration” options, you can explore using the following hook:
apply_filters( 'learn_press_course_duration_support', '...' );
This hook is located in the file: wp-content/plugins/learnpress/inc/lp-core-functions.php.
To modify the “Level” options, you can look into the following hook:
apply_filters('lp/template/function/course/level', '...' );
This hook can be found in the file: wp-content/plugins/learnpress/inc/lp-template-functions.php.
Please note that making changes to these files requires PHP coding knowledge.
Best regards,
Brianvu-tp
Brian!! Thank you so so much for getting back to me and offering a potential solution.
It is appreciated a lot.
If I may ask another Q, how will this affect the theme’s functionality when a new update is released?
Have a Great Day and Thank You again!
Kindest Regards
Kyle
Hi Brian,
I’ve been able to make changes to the duration, I can see the changes are active in a test site but my issue is that when I create a preview the “duration” does not update, it still shows 3 hours.
I updated the lp core and lp template functions. Am i missing something?
Kindest Regards
Kyle
Hi Kyle,
Thank you for the update.
To help us understand why the preview isn’t reflecting the updated duration, could you please provide the following information:
- The name of the theme you are currently using.
- A short video or screenshots that clearly demonstrate the issue.
With this information, we’ll be in a better position to provide you with the most accurate and effective guidance.
Best regards,
Brianvu-tp