Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing group extension link from the Admin subnav menu

  • Hello BuddyPress Dev Community.

    I’ve used the Group Extension API to create a few custom tabs for my group, on which I display some very basic mostly-static info. Unfortunately, when a group admin clicks the “Admin” link for the group, a link for each of these group extensions appears within the admin subnav.

    How do I remove those links from the Admin subnav?

    Thanks,
    Adam

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

  • paddelboot
    Participant

    @paddelboot

    I have the same issue. I even get a fatal error clicking on the extension link under “Admin”:

    Fatal error: Call to undefined function bp_locate_template() in /data/xxx/xxx/html/wp-content/plugins/buddypress/bp-groups/bp-groups-classes.php on line 1438

    Anyone?


    paddelboot
    Participant

    @paddelboot

    Solution:

    in the class constructor of your extension, note:

    $this->enable_edit_item = FALSE;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing group extension link from the Admin subnav menu’ is closed to new replies.
Skip to toolbar