Please or Register to create posts and topics.

Nickname's change only by admin

Hi everyone,

i install the Asgaros plugin on my site and i have a question.

Does nicknames can changed only by admins in dashboard profile panel?

Because in a forum if everyone can change nick this would create a lot of confusion if everyone change nicknames often

I don’t want to hide the control panel from users to leave the ability to change avatars

Does also possible to hide username under the nickname?

Thank you!

 

 

Hey @yoshi,

I already posted a snippet in the following topic:

https://asgaros.com/support/topic/user-display-names/

Just insert this code to only allow admins to change the display name:

add_filter('pre_user_display_name', 'protect_display_name');

function protect_display_name($name)
{
    if (!current_user_can('manage_options')) {
        $name = wp_get_current_user()->display_name;
    }

    return $name;
}

Just let me know if you need some further help.

Asgaros has reacted to this post.
Asgaros
Need professional help with Asgaros Forum? Book an appointment with us at domra Web Solutions for setup and customization services. Learn more about our Toolbox for Asgaros Forum plugin to enhance your forum experience.