Show link of quiz in curriculum

In course page, curriculum does not show links by degault. 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;
});

Was this article helpful?

Related Articles

Leave A Comment?