Comment on page
Customisation tips
Customisation tips available in WPLMS. There are many tips which you can search in our support forums and knowledge base as well.
Using Blank Child Theme?
- Then add the code in Blank Child Theme's function.php file
Not Using Blank Child Theme?
- Paste code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
In course page, curriculum does not show links by default. This tip shows links to quizzes in the curriculum
add_filter('bp_course_get_full_course_curriculum',function($curriculum_items){
foreach($curriculum_items as $i=>$item){
if($item['type'] == 'quiz'){
$curriculum_items[$i]['link'] = get_permalink($item['id']);
}
}
return $curriculum_items;
});
add_filter('vibe_zoom_script_args',function($tabs){
$tabs['shared_tabs']=array(
'course'=>_x('Course','vibe-zoom'),
'shared'=>_x('Shared ','vibe-zoom'),
'group'=>_x('Group','vibe-zoom'),
);
return $tabs;
});
add_filter('wplms_get_element_icon',function($icon,$component_name){
if($component_name == 'jitsi'){//jitsi is your component name, change accordingly
return '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>';
}
return $icon;
},10,2);
Last modified 2yr ago