Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login name, nice name, display name… which to use?

  • @jldean

    Member

    Hi

    Just fixing the Moderation Hold plugin to update ‘Last Poster’ correctly when a post is approved.

    I see the users table has 3 name fields for each user: user_login, user_nicename, display_name. (When integrated with WP, wp_users has the same fields).

    It looks like the display_name field never gets populated, so which name should I use? What purpose does user_nicename serve?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @sambauers

    Participant

    We use user_login to identify users in display.

    user_nicename is used for the url in the user’s profile page when using pretty permalinks. It is basically the user_login filtered to conform to URL standards.

    display_name is not populated in bbPress at the moment.

    @jldean

    Member

    Thanks for the answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar