Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • alexstine
    Participant

    @alexstine

    Hello

    Thanks, I seemed to misread the codex. I did not realize the word “the” was not included. Here’s the code that did it for me in the end.

    		$member_id = bp_displayed_user_id();
    		$x = ( get_user_meta( $member_id, 'staff', true ) == '' ) ? "Staff" : get_user_meta( $member_id, 'staff', true );
    			echo '<div class="staff-label">';
    			echo $x;
    			echo '</div>';
    		?>

    Thanks for your help @shanebp.


    alexstine
    Participant

    @alexstine

    Hello @shanebp,

    I tried this code but it did not work. Anywhere I went wrong?

    $member_id = bp_displayed_user_id();
    $x = ( get_the_user_meta( 'staff', $member_id ) == '' ) ? "Staff" : get_the_user_meta( 'staff', $member_id );
    echo '<div class="staff-label">';
    echo $x ;
    echo '</div>';

    Thanks.


    alexstine
    Participant

    @alexstine

    OK, if anyone else was wondering how to do this, it’s simple. Just add this code to functions.php or a mu-plugin and the BuddyPress items disappear.

    function remove_admin_menu_items() {
    /*Remove Emails from Appearance.*/
    	remove_submenu_page( 'themes.php', 'bp-emails-customizer-redirect' );
    /*Remove Manage Signups*/
    	remove_submenu_page( 'users.php', 'bp-signups' );
    }
    add_action( 'admin_menu', 'remove_admin_menu_items' );

    Hope that helps someone else. 🙂 Thanks.


    alexstine
    Participant

    @alexstine

    Any suggestions? Really need to get this working.

    Thanks.


    alexstine
    Participant

    @alexstine

    Hello,

    For now, I have hid the menu with CSS until I can find a cleaner solution. BuddyPress adds way to many links to the Admin especially considering the fact I don’t need BuddyPress registration features, they are just there and cannot be disabled for whatever reason.

    Thanks for any help. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar