Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding items to buddypress sub menu


  • Jonbie
    Participant

    @jonbie

    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?

  • The topic ‘adding items to buddypress sub menu’ is closed to new replies.
Skip to toolbar