Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: redirecting to main page


sicksight
Participant

@sicksight

you need to register a ‘slug’ for your new profile component…

maybe the codex could help you… and check this: https://codex.buddypress.org/how-to-guides/creating-a-custom-buddypress-component/

something like this:

bp_core_new_nav_item(
array(
'name' => __('Test', 'buddypress'),
'slug' => 'test',
'position' => 1,
'show_for_displayed_user' => true,
'screen_function' => 'test_screen_inbox',
'default_subnav_slug' => 'test',
'item_css_id' => $bp->test->id
));

Skip to toolbar