Course by default free

Home Forums Legacy Support Support queries How-to & Troubleshooting Course by default free

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #192742
    gsjaak
    Spectator
    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
    #192798
    logan
    Member
    hey, you can make a course free from front end course pricing section. http://prntscr.com/m8ad4o
    #192805
    gsjaak
    Spectator
    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; }  
    #192840
    logan
    Member
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Course by default free’ is closed to new replies.