PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.9
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 / widgets / course / filter-course.php

filter-course.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.9, at config/widgets/course/filter-course.php

98 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Fields config widget Course Filter.
4 */
5 return apply_filters(
6 'learn-press/widget/course-filter/settings',
7 array(
8 'title' => array(
9 'label' => esc_html__( 'Title', 'learnpress' ),
10 'type' => 'text',
11 'std' => esc_html__( 'Course Filter', 'learnpress' ),
12 ),
13 'number_level_category' => array(
14 'label' => __( 'Level of category to display on Frontend', 'learnpress' ),
15 'type' => 'number',
16 'std' => 2,
17 'min' => 1,
18 ),
19 'class_list_courses_target' => array(
20 'label' => __( 'Class of list courses want to filter', 'learnpress' ),
21 'type' => 'text',
22 'std' => '.lp-list-courses-default',
23 ),
24 'show_in_rest' => array(
25 'label' => __( 'Load widget via REST', 'learnpress' ),
26 'type' => 'checkbox',
27 'std' => 1,
28 ),
29 'hide_count_zero' => array(
30 'label' => __( 'Hide field has count is zero', 'learnpress' ),
31 'type' => 'checkbox',
32 'std' => 1,
33 ),
34 'search_suggestion' => array(
35 'label' => __( 'Enable Keyword Search Suggestion', 'learnpress' ),
36 'type' => 'checkbox',
37 'std' => 1,
38 ),
39 'fields_order' => array(
40 'label' => '',
41 'type' => 'hidden',
42 ),
43 'fields' => array(
44 'label' => __( 'Fields', 'learnpress' ),
45 'type' => 'sortable-checkbox',
46 'options' => array(
47 'search' => array(
48 'id' => 'search',
49 'label' => esc_html__( 'Keyword', 'learnpress' ),
50 ),
51 'price' => array(
52 'id' => 'price',
53 'label' => esc_html__( 'Price', 'learnpress' ),
54 ),
55 'category' => array(
56 'id' => 'category',
57 'label' => esc_html__( 'Course Category', 'learnpress' ),
58 ),
59 'tag' => array(
60 'id' => 'tag',
61 'label' => esc_html__( 'Course Tag', 'learnpress' ),
62 ),
63 'author' => array(
64 'id' => 'author',
65 'label' => esc_html__( 'Author', 'learnpress' ),
66 ),
67 'level' => array(
68 'id' => 'level',
69 'label' => esc_html__( 'Level', 'learnpress' ),
70 ),
71 'type' => array(
72 'id' => 'type',
73 'label' => esc_html__( 'Type (Online/Offline)', 'learnpress' ),
74 ),
75 'btn_submit' => array(
76 'id' => 'btn_submit',
77 'label' => esc_html__( 'Button Submit', 'learnpress' ),
78 ),
79 'btn_reset' => array(
80 'id' => 'level',
81 'label' => esc_html__( 'Button Reset', 'learnpress' ),
82 ),
83 ),
84 'std' => [
85 'search',
86 'price',
87 'category',
88 'tag',
89 'author',
90 'level',
91 'type',
92 'btn_submit',
93 'btn_reset',
94 ],
95 ),
96 )
97 );
98