Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: problem displaying single item


grosbouff
Participant

@grosbouff

Hi Jeff, I updated BP to use bp_core_new_subnav_item().

I’m working inside a class; and I would like to call the “screen” function of that class with my submenu.

I try

/* Add the subnav items to the groups nav item */
bp_core_new_subnav_item( array( 'name' => __( 'Group Map', 'bp-mappress' ), 'slug' => 'group-map', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => array(&$this, 'screen'), 'position' => 50, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'group-map' ) );
}

But it’s not working…

is

<br />
'screen_function' => array(&$this, 'screen')<br />

correct ?

Thanks !

Skip to toolbar