insert Sub navigation Item problem
- This topic has 0 replies, 1 voice, and was last updated 11 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Tagged: Buddypress sub navigation item
Hi,
first thanks for this awesome “commons in a box”.
I’ve a probleme with subnavitem in buddypress.
I’m using your default theme.
I’ve made a plugin for resume your education profile.You can add school, year, country.
When I activate the plugin everything is ok, I can see the item in my profil navigation under Profil and just before Message.
I want to add two subnav item : Add and Show.
I use this code which is ok on other theme :
$add_page = array(
'name' => 'Ajouter',
'slug' => 'add',
'parent_url' => $parent_url,
'parent_slug' => $this->component_slug,
'screen_function' => array($this, 'resume_page'),
'position' => 20,
'user_has_access' => ( bp_is_my_profile() || current_user_can('administrator') )
);
bp_core_new_subnav_item($add_page);
But nothing appears on my profile.
What am I doing wrong?
Thanks in advance.
Harry.