• I’m working on a website where there are 3 main user roles

    • Administrator
    • Barber
    • Barber Shop

    For each user role, I want to be able to change their display name according to their role.

    For Administrators I want to provide an emoji + First Name + Last Name
    e.g. ??? Bill Gates

    For Barber I want to keep the default WordPress display name (First Name + Last Name)
    e.g. Bill Gates

    And finally for Barber Shops I want to give a different field as their user name (Shop Name)
    e.g. Microsoft

    I found the following plugin (https://memberfix.rocks/change-display-name-publicly-as/) but unfortunately it needs to be purchased. Are there other ways or alternative plugins or custom code to achieve this issue???

    • This topic was modified 3 years, 3 months ago by sslv.
    • This topic was modified 3 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    The solution depends on where you want these names to be altered from the chosen standard option. Appearance on the front end is theme dependent. A template could be altered or some related function filtered. For example, post author names could likely be filtered with “the_author” filter hook, but only if your theme actually uses the_author() to output names.

    Changing name appearance in the back end, such as on the right end of the admin bar, is also possible, but every other location might require a different approach.

    Thread Starter sslv

    (@sslv)

    Hi @bcworkz

    Thanks for your reply, I’m currently using the UsersWP plugin, What I want is to change the display name of the users in the following pages:

    • Their Profile
    • The List of All Users
    • Thanks for your time!

    Moderator bcworkz

    (@bcworkz)

    If you’re referring to back end profile and user list table, you cannot alter those fields because they directly reflect what’s in the DB and need to stay that way. It is possible to add columns to the list table to display any other data you might desire.

    If you are referring to pages generated by UsersWP, I’m unfamiliar with that plugin. The approach would depend on what code the plugin uses to generate output. There might be filter hooks available. I suggest asking in the plugin’s dedicated support channel about anything the plugin is doing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to manage Display Names according to user role’ is closed to new replies.