PluginProbe
Tutor LMS – eLearning and online course solution / 2.5.0
Tutor LMS – eLearning and online course solution v2.5.0
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/Tutor_Base.php +11 -5 2.4.02.5.0 View file →
@@ -47,8 +47,17 @@
47 47 */
48 48 public $lesson_base_permalink;
49 49
50 50 /**
51 + * Course base permalink
52 + *
53 + * @since 2.5.0
54 + *
55 + * @var string
56 + */
57 + public $course_base_permalink;
58 +
59 + /**
51 60 * Register hooks
52 61 *
53 62 * @since 1.0.0
54 63 */
@@ -56,13 +65,10 @@
56 65
57 66 $this->course_post_type = tutor()->course_post_type;
58 67 $this->lesson_post_type = tutor()->lesson_post_type;
59 68
60 - // Lesson Permalink.
61 - $this->lesson_base_permalink = tutor_utils()->get_option( 'lesson_permalink_base' );
62 - if ( ! $this->lesson_base_permalink ) {
63 - $this->lesson_base_permalink = $this->lesson_post_type;
64 - }
69 + $this->course_base_permalink = tutor_utils()->get_option( 'course_permalink_base', $this->course_post_type );
70 + $this->lesson_base_permalink = tutor_utils()->get_option( 'lesson_permalink_base', $this->lesson_post_type );
65 71
66 72 }
67 73
68 74 }