BuddyPress default group tab is a simple plugin that allows site admin/group admins to control the default landing component/page of a BuddyPress Group.
Features:-
- Allow controlling the default landing component/page of a group
The good thing is, you can control which group has which component set as default landing page.
For example, In a group fashion, you can make the activity as the default landing page while in group education, you can make forum as the default landing page.
Faq:-
Does it work with BuddyPress Plugins using Group Extensions?
Indeed, it does.
Screenshots:-
Settings Screen:-
You can view this screen by visiting Individual Group->Admin->Settings Page
Example landing page:-
This is what happens when members is set as default tab.
Permissions:-
By default, site admins and group admins can change the tab. If you want to limit the tab change to certain roles, we have a filter for that. You can use the filter 'bp_default_group_tab_user_can_update_tab' to limit it. The attached callback will receive the current permission(Boolean) and the user id.
Here is an example where we restrict it to siteadmin only.
/** * Customize who can change the permission. * * @param bool $can is allowed? * @param int $user_id for this user? * * @return bool */ function buddydev_custom_group_tab_permissions( $can, $user_id ) { return is_super_admin( $user_id ); } add_filter( 'bp_default_group_tab_user_can_update_tab', 'buddydev_custom_group_tab_permissions', 10, 2 );