diff --git a/config/widgets/course/filter-course.php b/config/widgets/course/filter-course.php index e4a42eb7b..3dc28f15b 100644 --- a/config/widgets/course/filter-course.php +++ b/config/widgets/course/filter-course.php @@ -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', @@ -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',