remove the previous code and add this code in place of it :
add_filter('bp_course_api_get_user_course_status_item','check_exceprt',10,2);
function check_exceprt($return, $request ){
$body = json_decode($request->get_body(),true);
$course_id = $request['course'];
$item_id = $request['id'];
if(!empty($course_id) && !empty($item_id)){
$return['content'] = '<p class="custom_content">'.get_post_meta($item_id,'vibe_subtitle',true).'</p><br/>'.$return['content'];
}
return $return;
}
this is just provided to upload right now . We are yet to provide and elementor block to use it in course layout .