Adding custom settings in front end

No Longer Required: Use this plugin : https://wplms.io/support/knowledge-base/wplms-course-custom-nav-plugin/

To add settings in the front end settings please refer the code :

add_filter('wplms_course_creation_tabs','front_end_settings');

function front_end_settings($settings){

  $prefix = 'vibe_';

  $arr=array(array( // Text Input

           'label' => __('Custom item menu','vibe-customtypes'), // <label>

           'desc'  => __('Put description','vibe-customtypes'), // description

           'from'=> 'meta',

           'id'    => $prefix.'field1', // field id and name

           'default'=> 'custom ',

           'type'  => 'text' // type of field

           ));

  $fields = $settings['course_settings']['fields'];

  array_splice($fields, 1, 0,$arr );

  $settings['course_settings']['fields'] = $fields;

  return $settings;

}

 

 

Try adding the code given above from wplms-customizer.php in wplms customizer plugin  file .

Leave a Reply

Your email address will not be published. Required fields are marked *