Change display order of courses in Sidebar of instructor widget

After adding this code in child theme – functions.php, you can use the Page order value in course to custom order the courses in the Instructor widget. The higher the value, the higher the priority.
add_filter(‘bp_instructor_widget’,function($args){
$args[‘orderby’]=’menu_order’;
$args[‘order’]=’DESC’;
return $args;
});

Was this article helpful?

Related Articles

Leave A Comment?