WordPress.org

Ready to get started?Download WordPress

Forums

Plugin: Display First name instead of Username after login (1 post)

  1. bgbs
    Member
    Posted 2 years ago #

    I have a login plugin that displays username once the user logs in but
    I want to display their first name instead.

    Here is the code snippet that is responsible for doing this:
    echo '<div class="login">' . $before_widget . $before_title . "Welcome ".$user_identity . $after_title . '</div>';

    I tried to add $user_info->first_name in place of $user_identity but nothing shows up after "Welcome"

    Any ideas what I'm doing wrong?
    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic