| @@ -64,11 +64,13 @@ | ||
| 64 | 64 | */ |
| 65 | 65 | public function register_meta_box() { |
| 66 | 66 | $lesson_post_type = $this->lesson_post_type; |
| 67 | 67 | |
| 68 | - add_meta_box( 'tutor-course-select', __( 'Select Course', 'tutor' ), array( $this, 'lesson_metabox' ), $lesson_post_type ); | |
| 69 | - add_meta_box( 'tutor-lesson-videos', __( 'Lesson Video', 'tutor' ), array( $this, 'lesson_video_metabox' ), $lesson_post_type ); | |
| 70 | - add_meta_box( 'tutor-lesson-attachments', __( 'Attachments', 'tutor' ), array( $this, 'lesson_attachments_metabox' ), $lesson_post_type ); | |
| 68 | + tutor_meta_box_wrapper( 'tutor-course-select', __( 'Select Course', 'tutor' ), array( $this, 'lesson_metabox' ), $lesson_post_type, 'advanced', 'default', 'tutor-admin-post-meta' ); | |
| 69 | + | |
| 70 | + tutor_meta_box_wrapper( 'tutor-lesson-videos', __( 'Lesson Video', 'tutor' ), array( $this, 'lesson_video_metabox' ), $lesson_post_type, 'advanced', 'default', 'tutor-admin-post-meta' ); | |
| 71 | + | |
| 72 | + tutor_meta_box_wrapper( 'tutor-lesson-attachments', __( 'Attachments', 'tutor' ), array( $this, 'lesson_attachments_metabox' ), $lesson_post_type, 'advanced', 'default', 'tutor-admin-post-meta' ); | |
| 71 | 73 | } |
| 72 | 74 | |
| 73 | 75 | public function lesson_metabox() { |
| 74 | 76 | include tutor()->path . 'views/metabox/lesson-metabox.php'; |