@jonbie
10 years, 5 months ago
Hi,
I am trying to add a menu item “View Forums” to my buddypress forum sub menu but i am relatively new to coding and my attempt below is giving syntax errors.
add_filter(‘bp_forums_admin_nav’); function kleo_my_forums_menu ($bp_core_new_subnav_item) { $bp_core_new_subnav_item[] = array( ‘parent’ => ‘my-account-forums’, ‘id’ => ‘my-account-forums-root’, ‘title’ => __( ‘View Forum’, ‘bbpress’ ), ‘href’ => ‘/forums’ ); return $bp_core_new_subnav_item; }
can anyone point me in the right direction?