Ordering Courses in Product short description

Below tip will help you in re-ordering courses which are displayed in product short description.

For example :




function wplms_rearrange_courses($courses){

foreach($courses as $course){
$courses = ksort($new_courses); //Sort courses by Menu order value
return $courses;


Above code snippet will sort the courses based on the menu order value :


Leave a Reply

Your email address will not be published. Required fields are marked *