Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • 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)

  • Sam Bauers
    Participant

    @sambauers

    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.

    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