Skip to content

Commit

Permalink
= 4.2.6.5 =
Browse files Browse the repository at this point in the history
~ Added: options for config filter course.
  • Loading branch information
tungnxt89 committed Apr 8, 2024
1 parent 4e12d54 commit ad7f59b
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions config/widgets/course/filter-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,27 @@
'type' => 'text',
'std' => esc_html__( 'Course Filter', 'learnpress' ),
),
'number_level_category' => array(
'label' => __( 'Number level category want to show', 'learnpress' ),
'type' => 'number',
'std' => 1,
'min' => 1,
),
'class_list_courses_target' => array(
'label' => __( 'Class of list courses want to filter', 'learnpress' ),
'type' => 'text',
'std' => '.lp-list-courses-default',
),
'show_in_rest' => array(
'label' => __( 'Load widget via REST', 'learnpress' ),
'type' => 'checkbox',
'std' => 1,
),
'load_courses_of_subcategories_for_parent' => array(
'label' => __( 'Load courses of subcategories on Parent Category without tick Parent', 'learnpress' ),
'type' => 'checkbox',
'std' => 0,
),
'hide_count_zero' => array(
'label' => __( 'Hide field has count is zero', 'learnpress' ),
'type' => 'checkbox',
Expand All @@ -25,11 +41,6 @@
'type' => 'checkbox',
'std' => 1,
),
'class_list_courses_target' => array(
'label' => __( 'Class of list courses want to filter', 'learnpress' ),
'type' => 'text',
'std' => '.lp-list-courses-default',
),
'fields_order' => array(
'label' => '',
'type' => 'hidden',
Expand Down

0 comments on commit ad7f59b

Please # to comment.