Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing items’ names in groups’ navigation menu


  • jgarate
    Participant

    @jgarate

    HI,
    I would like to change the items names in the groups navigation menu? I’ve read that you can do that with the Navigation API, but, where do I find this?

    Wordpress: 4.7.5
    buddypress: 2.8.2

    Thanks

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

  • shanebp
    Moderator

    @shanebp


    jgarate
    Participant

    @jgarate

    ok, I know that article, but where do I add those pieces of code? where am I suppossed to add them?


    shanebp
    Moderator

    @shanebp


    jgarate
    Participant

    @jgarate

    Ok, so I got this piece of code, but I don’t understand it perfectly:

    function bpcodex_rename_group_tabs() {
     
        if ( ! bp_is_group() ) {
            return;
        }
        
        buddypress()->groups->nav->edit_nav( array( ‘name’ => __( ‘Group Discussion’, ‘buddypress’ ) ), ‘forum’, bp_current_item() );
    }
    add_action( ‘bp_actions’, ‘bpcodex_rename_group_tabs’ );

    which is the old item (‘Group Discussion’?) and the new one (‘forum’?)? Am I changing from ‘Group Discussion’ to ‘forums’ or the other way round?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar