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

Tip 1: Change Icons of components in PWA

Change icon of any module in PWA screen
WPLMS WordPress LMS Documentation

Tip 2: Adding A Youtube Preview Video In Profile

Adding a Youtube Preview video in Profile.
WPLMS WordPress LMS Documentation
In course page, curriculum does not show links by default. This tip shows links to quizzes in the curriculum
1
add_filter('bp_course_get_full_course_curriculum',function($curriculum_items){
2
foreach($curriculum_items as $i=>$item){
3
if($item['type'] == 'quiz'){
4
$curriculum_items[$i]['link'] = get_permalink($item['id']);
5
}
6
}
7
return $curriculum_items;
8
});
Copied!

Tip 4: ReOrder Zoom Meeting Tabs

1
add_filter('vibe_zoom_script_args',function($tabs){
2
$tabs['shared_tabs']=array(
3
'course'=>_x('Course','vibe-zoom'),
4
'shared'=>_x('Shared ','vibe-zoom'),
5
'group'=>_x('Group','vibe-zoom'),
6
);
7
return $tabs;
8
});
Copied!

Tip 5: Add Custom Icons in Unit in wplms 4

1
add_filter('wplms_get_element_icon',function($icon,$component_name){
2
if($component_name == 'jitsi'){//jitsi is your component name, change accordingly
3
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>';
4
}
5
return $icon;
6
},10,2);
Copied!

Last modified 6mo ago