• Hello,

    Will it be possible to show in first name and last initial in “football-pool-ranking-score-breakdown” plugin? Because in that table it shows me all the name. For example: Dave M. instead of Dave Mitchel.
    Thank you so much

    AntonieH

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AntoineH

    (@antoineh)

    You’ll have to change the $params['user_name'] value via the change_params() function in the breakdown plugin. Something like this:

    $user_info = get_userdata( $user_id );
    $first_name = $user_info->first_name;
    $last_name = $user_info->last_name;
    
    $params['user_name'] = sprintf( '%s %s.', $first_name, substr( $last_name, 0, 1 ) );
    

    And maybe add some code as fallback for users that do not have a first and last name.

    Thread Starter dave101

    (@dave101)

    Excelent!!! Thank you AntonieH

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show initial in last name’ is closed to new replies.