complete_form.php
5 years ago
content.php
4 years ago
lesson_sidebar.php
4 years ago
required-enroll.php
4 years ago
sidebar_question_and_answer.php
4 years ago
required-enroll.php
15 lines
| 1 | <?php |
| 2 | $course_id = tutor_utils()->get_course_id_by( 'lesson', get_the_ID() ); |
| 3 | |
| 4 | $args = array( |
| 5 | 'headline' => __( 'Permission Denied', 'tutor' ), |
| 6 | 'message' => __( 'Please enroll in this course to view course content.', 'tutor' ), |
| 7 | 'description' => sprintf( __( 'Course name : %s', 'tutor' ), get_the_title( $course_id ) ), |
| 8 | 'button' => array( |
| 9 | 'url' => get_permalink( $course_id ), |
| 10 | 'text' => __( 'View Course', 'tutor' ) |
| 11 | ) |
| 12 | ); |
| 13 | |
| 14 | tutor_load_template('permission-denied', $args); |
| 15 | ?> |