PluginProbe
Tutor LMS – eLearning and online course solution / 1.2.13
Tutor LMS – eLearning and online course solution v1.2.13
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Utils.php +11 -2 1.2.121.2.13 View file →
@@ -3554,12 +3554,21 @@
3554 3554 * @since v.1.0.0
3555 3555 */
3556 3556 public function user_profile_permalinks(){
3557 3557 $permalinks = array(
3558 - 'enrolled_course' => __('Enrolled Course', 'tutor'),
3559 3558 'courses_taken' => __('Courses Taken', 'tutor'),
3560 - 'reviews_wrote' => __('Reviews Written', 'tutor'),
3561 3559 );
3560 +
3561 + $show_enrolled_course = tutor_utils()->get_option('show_courses_completed_by_student');
3562 + $enable_show_reviews_wrote = tutor_utils()->get_option('students_own_review_show_at_profile');
3563 +
3564 + if ($show_enrolled_course){
3565 + $permalinks['enrolled_course'] = __('Enrolled Course', 'tutor');
3566 + }
3567 + if ($enable_show_reviews_wrote){
3568 + $permalinks['reviews_wrote'] = __('Reviews Written', 'tutor');
3569 + }
3570 +
3562 3571
3563 3572 return apply_filters('tutor_public_profile/permalinks', $permalinks);
3564 3573 }
3565 3574