Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • PapaTango
    Member

    @blogmudgeon

    And that Sir, just brought my community site one step closer to production! I may not be a programmer, but I have had the good fortune of encountering many gracious ones across the years willing to help the hapless, hopeless, and helpless amongst the publisher ranks. Thank you!

    If you ever have issues with amateur radio gear, don’t hesitate to ask me… :-)

    P


    PapaTango
    Member

    @blogmudgeon

    Sorry to say, a lot of us on the end publishing equation are not programmers… I used EngineSite to find the string, but have no clue as to where the parent ID for the menu item is to be found. even then, is it simply a matter of entering that ID into the argument?

    ‘/**
    * bp_core_remove_nav_item()
    *
    * Removes a navigation item from the sub navigation array used in BuddyPress themes.
    *
    * @package BuddyPress Core
    * @param $parent_id The id of the parent navigation item.
    * @param $slug The slug of the sub navigation item.
    */
    function bp_core_remove_nav_item( $parent_id ) {
    global $bp;

    /* Unset subnav items for this nav item */
    if ( is_array( $bp->bp_options_nav[$parent_id] ) ) {
    foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) {
    bp_core_remove_subnav_item( $parent_id, $subnav_item );
    }
    }

    unset( $bp->bp_nav[$parent_id] );’

    Thanks!

    P


    PapaTango
    Member

    @blogmudgeon

    Great! This is very similar to what is done in Joomla, where I am migrating development from. Thanks for this tip–and the URL to the codex.

    Anyone have suggestions on eliminating a menu item altogether–while maintaining functionality?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar