bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

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

(3 posts)
  • Started 3 months ago by jldean
  • Latest reply from jldean
  • This topic is resolved
  1. 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!

    Posted 3 months ago #
  2. 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.

    Posted 3 months ago #
  3. jldean
    Member

    Thanks for the answer!

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.