Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change default subnav tab in Groups >> Manage


  • danleachuk
    Participant

    @danleachuk

    I would like to change the default tab in Groups >> Manage from Edit Details to Members. I have found the following function in bp-groups-screen.php that redirects the user to the Edit Details page by default:

    function groups_screen_group_admin() {
    	if ( !bp_is_groups_component() || !bp_is_current_action( 'admin' ) )
    		return false;
    
    	if ( bp_action_variables() )
    		return false;
    
    	bp_core_redirect( bp_get_group_permalink( groups_get_current_group() ) . 'admin/edit-details/' );
    }

    I’m reluctant to hack this function as it will be overwritten when BP updates. Can I somehow override it in bp-custom.php?

    Thanks

  • You must be logged in to reply to this topic.
Skip to toolbar