Activity

  • Jamie replied to the question Mobile Buddymenu (left side icon) blank when logged out. in the forum BuddyBoss theme 8 years, 7 months ago

    The main reason I was using the plugin was to hide the “edit my profile” link, which leads to the backend admin menu. I’ve found a code to do it manually though.

    If anyone else wants to do the same add this to your functions.php file in your CHILD theme.

    function ya_do_it_admin_bar_remove() {
    global $wp_admin_bar;

    /* **edit-profile is the ID** */
    $wp_admin_bar->remove_menu(‘edit-profile’);
    }

    add_action(‘wp_before_admin_bar_render’, ‘ya_do_it_admin_bar_remove’, 0);

    Thanks again for your time varun