Notifications
Clear all

wpForo 1.x.x [Solved] How to close username?

3 Posts
2 Users
0 Reactions
1,598 Views
good999
Posts: 12
Topic starter
(@good999)
Eminent Member
Joined: 5 years ago

How can I turn off usernames everywhere, I don't want other members to see this field. Attachment red circle

2 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @hayguys0129,

This is not username, this is the nickname. Please don't confuse them. Yes, they are the same right after the registration, because WordPress creates user nickname based on username, but you can change the nickname in My Profile > Account page:

Nicknames are used for user @mentioning and in your profile URL. So again, this is the nickname not username:

https:// wpforo.com/community/profile/ hayguys0129/

Please read this post for more information: https://wpforo.com/community/postid/17315/

 

In any case, if you still want to disable nicknames and don't allow people to @menation each other, you should put this code in WordPress active theme functions.php file:

function wpforo_disable_user_nicenames( $nicename ){
return '';
}
add_filter('wpforo_member_nicename', 'wpforo_disable_user_nicenames', 10);

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

1 Reply
good999
(@good999)
Joined: 5 years ago

Eminent Member
Posts: 12

羅伯特 Thank you very much, this function is very good, but I use Chinese, @ will always be a username, it will not change to Chinese nickname