Skip to:
Content
Pages
Categories
Search
Top
Bottom

What screen_function shall I pass to bp_core_new_subnav_item() to create a ’Create a Group’ link


  • tomkoukoulis
    Member

    @tomkoukoulis

    I noticed that link does not exist on the members’ groups’ page in my version of BP.

    I used: `bp_core_new_subnav_item( array( ‘name’ => __( ‘Create a Group’, ‘buddypress’ ), ‘slug’ => ‘create’, ‘parent_url’ => $groups_link, ‘parent_slug’ => $bp->groups->slug, ‘screen_function’ => ‘groups_screen_create_group’, ‘position’ => 50 ));` after line 154 in bp-groups.php (I think we use the default theme).

    The link gets created successfully and works and takes you to the create a group page. But I get a warning that that `screen_function` does not exist. If I omit `screen_function` from the parameters (or if I set it to the empty string `”`) the link does not get created.

    I would appreciate any help.

  • The topic ‘What screen_function shall I pass to bp_core_new_subnav_item() to create a ’Create a Group’ link’ is closed to new replies.
Skip to toolbar