Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove @username from profile url

Viewing 3 replies - 1 through 3 (of 3 total)

  • Mohammad Imran
    Participant

    @imranmd

    @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');
    

    Allinop
    Participant

    @aboutm2

    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.


    Allinop
    Participant

    @aboutm2

    The main issue is that email username is available within the member’s profile url.

    Is there anyway to change this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar