Skip to content

Commit

Permalink
= 4.2.6.6 =
Browse files Browse the repository at this point in the history
~ Set default order by is 'term_order' for course categories
  • Loading branch information
tungnxt89 committed Apr 26, 2024
1 parent 990b372 commit e792d95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/Models/ListCourseCategories.php
Expand Up @@ -30,6 +30,8 @@ public static function get_all_categories_id_name( array $arg_query_terms = [] )
'taxonomy' => LP_COURSE_CATEGORY_TAX,
'fields' => 'id=>name',
'parent' => 0,
'orderby' => 'term_order',
'order' => 'ASC',
];

$arg_query_terms = array_merge( $arg_query_terms_default, $arg_query_terms );
Expand Down

0 comments on commit e792d95

Please sign in to comment.