@aboutm2 please paste this code snippet and check it as per your requirement.
// Hide user name from BuddyPress profile
function hide_user_name_from_profile() {
if ( bp_is_active('xprofile') ) {
?>
<style>
.user-nicename{
display:none;
}
</style>
<?php
}
}
add_action( 'wp', 'hide_user_name_from_profile');
Thank you , that worked for removing @username from the profile page.
However, @username is still visible within the member’s posts (witin the user’s info box).
@username is also visible within the url of the members profile.
I just find buddypress disclosing members’ @username to be bad practice from a security point of view and denies members’ proper anonymity.
The main issue is that email username is available within the member’s profile url.
Is there anyway to change this?