Reply To: Changing items’ names in groups’ navigation menu
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?