PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.2.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.2.0
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / config / settings / course.php

course.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.2.0, at config/settings/course.php

126 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Settings Courses
4 */
5 $generate_course_thumbnail = get_option( 'learn_press_generate_course_thumbnail', 'no' );
6 $des_option_redirect_finish_course = wp_sprintf(
7 '%s<br>%s',
8 esc_html__( 'The site will be redirected to the URL added after clicking the finish course button.', 'learnpress' ),
9 esc_html__( 'Set blank, the site will be redirected to the single course page', 'learnpress' )
10 );
11
12 return apply_filters(
13 'learn-press/courses-settings-fields',
14 array_merge(
15 apply_filters(
16 'learn-press/course-settings-fields/general',
17 array(
18 array(
19 'title' => esc_html__( 'General', 'learnpress' ),
20 'type' => 'title',
21 ),
22 array(
23 'title' => esc_html__( 'Review courses', 'learnpress' ),
24 'desc' => esc_html__( 'Courses created by instructors will be pending review first.', 'learnpress' ),
25 'id' => 'required_review',
26 'default' => 'yes',
27 'type' => 'checkbox',
28 ),
29 array(
30 'title' => esc_html__( 'Auto start', 'learnpress' ),
31 'id' => 'auto_enroll',
32 'default' => 'yes',
33 'type' => 'checkbox',
34 'desc' => esc_html__( 'Students will get started on courses immediately after successfully purchasing them.', 'learnpress' ),
35 ),
36 array(
37 'title' => __( 'Confirmation popup', 'learnpress' ),
38 'desc' => __( 'Show a confirmation popup before finishing the course or completing the item.', 'learnpress' ),
39 'id' => 'enable_popup_confirm_finish',
40 'default' => 'yes',
41 'type' => 'checkbox',
42 ),
43 array(
44 'title' => esc_html__( 'Archive page layout', 'learnpress' ),
45 'desc' => esc_html__( 'Display the List course type on the Course Archive page.', 'learnpress' ),
46 'id' => 'archive_courses_layout',
47 'default' => 'list',
48 'type' => 'select',
49 'options' => learn_press_courses_layouts(),
50 ),
51 array(
52 'title' => esc_html__( 'Courses per page', 'learnpress' ),
53 'desc' => esc_html__( 'The number of displayed courses per page.', 'learnpress' ),
54 'id' => 'archive_course_limit',
55 'default' => '8',
56 'type' => 'number',
57 'custom_attributes' => array(
58 'min' => '1',
59 ),
60 'css' => 'min-width: 50px; width: 50px;',
61 ),
62 array(
63 'title' => esc_html__( 'Loading ajax Courses', 'learnpress' ),
64 'desc' => __( 'On/Off <i>loading ajax courses on the Course Archive page </i>.', 'learnpress' ),
65 'id' => 'courses_load_ajax',
66 'default' => 'yes',
67 'type' => 'checkbox',
68 ),
69 array(
70 'title' => esc_html__( 'Do not run Ajax when reloading the Course Archive page', 'learnpress' ),
71 'desc' => esc_html__( 'Ajax is only applied when selecting pagination, filtering, searching, and sorting. Not applicable when reloading the Course Archive page.', 'learnpress' ),
72 'id' => 'courses_first_no_ajax',
73 'default' => 'no',
74 'type' => 'checkbox',
75 'show_if_checked' => 'courses_load_ajax',
76 ),
77 array(
78 'title' => esc_html__( 'Thumbnail dimensions', 'learnpress' ),
79 'id' => 'course_thumbnail_dimensions',
80 'default' => array( 500, 300, 'yes' ),
81 'type' => 'image-dimensions',
82 ),
83 array(
84 'title' => esc_html__( 'Redirect when finishing the course', 'learnpress' ),
85 'id' => 'course_finish_redirect',
86 'default' => '',
87 'type' => 'url',
88 'placeholder' => 'https://learnpress.com/',
89 'desc' => $des_option_redirect_finish_course,
90 ),
91 array(
92 'type' => 'sectionend',
93 ),
94 )
95 ),
96 apply_filters(
97 'learn-press/course-settings-fields/curriculum',
98 array(
99 array(
100 'type' => 'title',
101 'title' => esc_html__( 'Curriculum Settings', 'learnpress' ),
102 'id' => 'lp_metabox_curriculum_setting',
103 ),
104 array(
105 'title' => esc_html__( 'Section Per Page', 'learnpress' ),
106 'id' => 'section_per_page',
107 'default' => 1,
108 'type' => 'number',
109 'desc' => esc_html__( 'The number of displayed sections per page (Enter -1 to display all sections).', 'learnpress' ),
110 ),
111 array(
112 'title' => esc_html__( 'Course Item Per Page', 'learnpress' ),
113 'id' => 'course_item_per_page',
114 'default' => 10,
115 'type' => 'number',
116 'desc' => esc_html__( 'The number of displayed course items per page in a section (Enter -1 to display all course items).', 'learnpress' ),
117 ),
118 array(
119 'type' => 'sectionend',
120 'id' => 'lp_metabox_curriculum_setting',
121 ),
122 )
123 )
124 )
125 );
126