Create subnav in profile nav
-
Hello,
I coding badge plugin and want to create subnav in profile like public, edit profile, change avatar. Is it possible?
I dont want to create it new nav in use profile because it have many tab in user profile now. when i try to code like this
$badge_link = $bp->loggedin_user->domain . $bp->profile->slug . ‘/’;
bp_core_new_subnav_item( array(
‘name’ => __( ‘screenone’, ‘bp-badge’ ),
‘slug’ => ‘screenone’,
‘parent_slug’ => $bp->profile->slug,
‘parent_url’ => $badge_link,
‘screen_function’ => ‘bp_badge_screenone’,
‘position’ => 10
) );
Then it create subnav in profile tab but after click on it, it go to main page.
what i am do wrong?
- The topic ‘Create subnav in profile nav’ is closed to new replies.