| @@ -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 | } |