Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] adjust nav / subnav links

  • Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    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)
  • Avatar of shanebp
    shanebp
    Moderator

    @shanebp

    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)

You must be logged in to reply to this topic.