@jgarate
7 years, 5 months ago
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?
ok, I know that article, but where do I add those pieces of code? where am I suppossed to add them?