Using this simple tip you can extend custom fields in the LMS post types like Courses,Units, Quizzes,Questions, Assignments
Currently this tip is available only for the WP Admin panel, however, in future the same code tip will work for front end options as well.
Filters available in theme :
For Page settings : wplms_page_metabox
For Post settings : wplms_post_metabox
For Course settings : wplms_course_metabox
For Course product settings : wplms_course_product_metabox
For Unit settings : wplms_unit_metabox
For Quiz settings : wplms_quiz_metabox
For Question settings : wplms_question_metabox
For Testimonial settings : wplms_testimonial_metabox
For Event settings : wplms_events_metabox
For Assignment settings : wplms_assignment_metabox
For Product settings : wplms_product_metabox
For Certificate settings : wplms_certificate_metabox
To add a custom field in the corresponding metabox, you need to add code like this :
FILTER NAME : Pick from Above
CUSTOM_FUNCTION_NAME : Any arbitrary unique name ( without spaces or special characters )
id : Unique ID prefixed with "vibe_"
Type : There are various types of field types available for this check the custom_meta_boxes.php file in the Vibe custom types plugin
add_filter('FILTER NAME','CUSTOM_FUCNTION_NAME'); function CUSTOM_FUCNTION_NAME($settings){ $settings [] = array( // Text Input 'label' => 'LABEL', // <label> 'desc' => 'DESCRIPTION', // description 'id' => 'vibe_field_name', // field id and name 'type' => 'text', // type of field ), return $settings; }
There are