| @@ -16,8 +16,54 @@ | ||
| 16 | 16 | exit; |
| 17 | 17 | |
| 18 | 18 | class Addons { |
| 19 | 19 | |
| 20 | + public function __construct() { | |
| 21 | + add_filter('tutor_pro_addons_lists_for_display', array($this, 'tutor_addons_lists_to_show')); | |
| 22 | + } | |
| 23 | + | |
| 24 | + public function tutor_addons_lists_to_show(){ | |
| 25 | + | |
| 26 | + $addons = array( | |
| 27 | + 'tutor-certificate' => array( | |
| 28 | + 'name' => __('Tutor Certificate', 'tutor-certificate'), | |
| 29 | + 'description' => 'Student will able to download certificate of completed course', | |
| 30 | + ), | |
| 31 | + 'tutor-course-attachments' => array( | |
| 32 | + 'name' => __('Tutor Course Attachments', 'tutor-certificate'), | |
| 33 | + 'description' => 'Add unlimited attachments/ private files to any Tutor course', | |
| 34 | + ), | |
| 35 | + 'tutor-course-preview' => array( | |
| 36 | + 'name' => __('Tutor Course Preview', 'tutor-certificate'), | |
| 37 | + 'description' => 'Open some lesson to check course overview for guest', | |
| 38 | + ), | |
| 39 | + 'tutor-email' => array( | |
| 40 | + 'name' => __('Tutor E-Mail', 'tutor-certificate'), | |
| 41 | + 'description' => 'Send email on various tutor events', | |
| 42 | + ), | |
| 43 | + 'tutor-multi-instructors' => array( | |
| 44 | + 'name' => __('Tutor Multi Instructors', 'tutor-certificate'), | |
| 45 | + 'description' => 'Start a course with multiple instructors by Tutor Multi Instructors', | |
| 46 | + ), | |
| 47 | + 'tutor-prerequisites' => array( | |
| 48 | + 'name' => __('Tutor Prerequisites', 'tutor-certificate'), | |
| 49 | + 'description' => 'Specific course you must complete before you can enroll new course by Tutor Prerequisites', | |
| 50 | + ), | |
| 51 | + 'tutor-report' => array( | |
| 52 | + 'name' => __('Tutor Report', 'tutor-certificate'), | |
| 53 | + 'description' => 'Check your tutor assets performance through tutor report', | |
| 54 | + ), | |
| 55 | + ); | |
| 56 | + | |
| 57 | + | |
| 58 | + return $addons; | |
| 59 | + } | |
| 60 | + | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * @deprecated from alpha version | |
| 64 | + */ | |
| 65 | + | |
| 20 | 66 | public function addons_page(){ |
| 21 | 67 | |
| 22 | 68 | if ( false === ( $addons_themes_data = get_transient( 'tutor_addons_themes_data' ) ) ) { |
| 23 | 69 | //Request New |