function fep_user_name( $id ){
$which = apply_filters( ‘fep_filter_show_which_name’, ‘display_name’ );
switch( $which ){
case ‘first_last_name_suffix’:
$name = fep_get_userdata( $id, ‘first_name’, ‘id’ ) . ‘ ‘ . fep_get_userdata( $id, ‘last_name’, ‘id’ ). ‘ ‘ . fep_get_userdata( $id, ‘last_name_suffix’, ‘id’ );
break;
case ‘first_last_name’:
$name = fep_get_userdata( $id, ‘first_name’, ‘id’ ) . ‘ ‘ . fep_get_userdata( $id, ‘last_name’, ‘id’ );
break;
case ‘last_first_name’:
$name = fep_get_userdata( $id, ‘last_name’, ‘id’ ) . ‘ ‘ . fep_get_userdata( $id, ‘first_name’, ‘id’ );
break;
case ‘first_name’:
case ‘last_name’:
case ‘user_login’:
case ‘user_nicename’:
$name = fep_get_userdata( $id, $which, ‘id’ );
break;
case ‘display_name’:
default:
$name = fep_get_userdata( $id, ‘display_name’, ‘id’ );
break;
}
return apply_filters( ‘fep_filter_user_name’, $name, $id );
}
I have modified my FEP functions.php file to include this additional option and it is working perfectly. I would just like it incorporated into your code so it won’t get lost during updates. Thanks!