Hi Rebecca,
Thanks for contacting us about setting my groups as the default tab when the activity page loads. I have looked into this and create the code below which should work. Please copy the code from the ticket (not the email) and add it to WP Admin > Appearance > Editor > KLEO Child > Functions.php
function sq_set_groups_as_default_for_activity_feed() {
if (! is_user_logged_in() ) {
return ;
}
if (! bp_is_activity_directory() ) {
return ;
}
$tab = 'personal';
setcookie( 'bp-groups-scope', 'personal', null, '/' );
$_COOKIE['bp-groups-scope'] = $tab;
}
add_action('bp_template_redirect', 'sq_set_groups_as_default_for_activity_feed');
Make sure to purge your website cache entirely, any CDN and your front-end cache (Ctrl+F5) to see the changes.
Thanks,
Kieran