BuddyDev

Search

[Resolved] Remove buddyblog "Posts" link in menu

  • Participant
    Level: Initiated
    Posts: 16
    Chanel on #11300

    Hi there,

    How do I remove the BuddyBlog “Posts” link in the BP menu?

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #11314

    Hi Janelle,
    Are you referring to the adminbar or the profile menu? Can you please put a screenshot and link here?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 16
    Chanel on #11320

    I’m refferring to the admin bar with dropdown menu.

    Kind regards,
    Janelle

  • Participant
    Level: Initiated
    Posts: 16
    Chanel on #11503

    Hi Brajesh,

    I’m not sure how to post a screenshot, but here is a link to the menu I’m referring to:
    https://buddydev.com/buddypress/enhancing-my-account-menu-with-buddypress-in-the-adminbar/
    Any instructions on how to remove the posts link?

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #11510

    Thank you. I will post the code today.

  • Participant
    Level: Initiated
    Posts: 16
    Chanel on #11514

    Thanks so much!

  • Participant
    Level: Initiated
    Posts: 16
    Chanel on #11675

    I’ve hidden the “Posts” link using css display none as a work around.

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #11699

    Sorry I could not help in time. I am glad you did it yourself.

    It is easier with the upcoming BuddyBlog. The following code will code it

    
    add_filter( 'buddyblog_adminbar_nav_items', '__return_empty_array' );
    

    Marking it as resolved.

    Regards
    Brajesh

The topic ‘ [Resolved] Remove buddyblog "Posts" link in menu’ is closed to new replies.

This topic is: resolved