Showing additional profile field date below instructor name

Please try adding the given code in your wplms-customizer.php file in wplms customizer plugin :

add_filter('wplms_instructor_meta','show_profile_fileds_custom',10,2);
function show_profile_fileds_custom($html,$instructor_id){
  $field = 'Bio';
  $more = bp_get_profile_field_data('field='.$field.'&user_id='.$instructor_id);
  if(isset($more))
  $html .= '<span>'.$more.'</span>';
  return $html;
}

Replace “Bio ” in above code with your profile field name .

Was this article helpful?

Related Articles

2 Comments

  1. calatobi

    not working… how can i use this code? when I try the code above the fields do not appear.

Leave A Comment?