Hi!
I want to make a course free by default. I tried using the custom navigation plugin but it won't put through my edit.
I also tried: https://wplms.io/support/forums/topic/setting-new-course-default-vlaues/
and came up with the following code:
add_filter('wplms_course_metabox','custom_wplms_course_metabox33',9999);
function custom_wplms_course_metabox33($course_settings){
$course_settings['vibe_course_free']['std']='S';
$course_settings['vibe_course_free']['default']='S';
$course_settings['vibe_course_free']['value']='S';
return $course_settings;
}
However, it is not showing any effect.
Can you help me out with this?
Kind regards
hey,
you can make a course free from front end course pricing section.
http://prntscr.com/m8ad4o
Hi,
Yeah i know, but I took the pricing section out.
I figured out you can change the default value with this, in case anyone needs it:
add_filter('wplms_course_creation_tabs','custom_wplms_course_creation_tabs',9999);
function custom_wplms_course_creation_tabs($settings){
$settings['course_pricing']['fields'][1]['default']='S';
return $settings;
}