Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] adjust nav / subnav links

  • @shanebp

    Moderator

    Using BP 1.5.5

    I need to adjust some nav / subnav links via bp-custom.
    For example, how can I append to a link ?

    function bc_adjust_profile_tabs() {
    global $bp;
    
    $bp->bp_nav = 20;  // works fine
    
    $bp->bp_nav .= '/pictures/';  // does not work
    }
    add_action( 'bp_setup_nav', 'bc_adjust_profile_tabs', 99 );
Viewing 1 replies (of 1 total)
  • @shanebp

    Moderator

    I was using the wrong hook.
    This works:

    function user_nav_append_url() {
    global $bp;
    
    $tab_anchor = "pictures";
    
    $bp->bp_nav .= $tab_anchor;
    
    }
    add_action( 'wp_head', 'user_nav_append_url', 9 );
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] adjust nav / subnav links’ is closed to new replies.
Skip to toolbar