Notifications
Clear all

Username shows customers email addresses

2 Posts
2 Users
0 Likes
454 Views
Posts: 5
 Matt
Customer
Topic starter
(@matthew-melissant)
Member
Joined: 1 year ago

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: 5915
Admin
(@astgh)
Illustrious Member
Joined: 6 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