Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove Profile Visibility Subnav


  • dsnic
    Participant

    @dsnic

    I want all profile fields to be visible on my site, so I’ve set visibility for every field to Everyone on Users > Profile Fields. Now the subnav Settings > Profile Visibility is pretty much useless because there are no settings there that users can change.a

    So my question is: how can I hide or remove the subnav Settings > Profile Visibility?

    I’ve been trawling these forums and other sites on Google for hours, and I’ve tried out a couple of codes, but I couldn’t make this happen. I’d really appreciate it if someone could help me with a solution. Thank you so much in advance!

    WordPress: 4.6.1
    Buddypress: 2.6.2

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

  • danbp
    Participant

    @danbp

    hi @dsnic,

    this should work. Add to bp-custom.php or child-theme functions.php

    function bpfr_hide_visibility_tab() {	
    	if( bp_is_active( 'xprofile' ) )	
    			
    		bp_core_remove_subnav_item( 'settings', 'profile' ); 
    	
    }
    add_action( 'bp_ready', 'bpfr_hide_visibility_tab' );

    dsnic
    Participant

    @dsnic

    Thank you so much, @danbp! That worked like a charm. 🙂


    danbp
    Participant

    @danbp

    You’re welcome ! 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Remove Profile Visibility Subnav’ is closed to new replies.
Skip to toolbar