AI Assistant
Notifications
Clear all

Username shows customers email addresses

2 Posts
2 Users
0 Reactions
1,773 Views
Posts: 5
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@mmm)
Member
Joined: 3 years ago
[#12180]

Hello,

My commenters currently create accounts automatically via woocommerce or memberpress.

Their account usernames are autogenerated. This becomes a problem when @ mentioning someone because it displays the private information of each member in the popup.

How can I show only the abbreviated versions of these Wordpress usernames? An example would be  'marshal.mak@gmail.com' only shows 'marshal.mak' ?

Thank you

 


1 Reply
Astghik
Posts: 6646
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi Matt,

Please don't confuse Username and Nicename. Those are not the same. 

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

If you want to disable the wpDiscuz mentioning feature at all, you should disable the "User Mentioning" option. It's located in the Dashboard > wpDiscuz > Settings > Subscription and User Following admin page.

More info here:   https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/subscription-and-user-following/#enable-user-mentioning

In any case, if you just want to hide the nicename, but allow people to @menation each other, you should put this code in WordPress active theme functions.php file. 

add_filter("wpdiscuz_show_nicename", "__return_false");

This article should be helpful for you:   https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

Important: The code above just hides the nicename next to the display name, but the mentioning feature will be still available if the users know the nicenames of each other. 


Reply
Share:
Scroll to top