Redirect Users to Notifications Page Upon Login to BuddyPress

Tonight I spent a good deal of time trying to figure out how to redirect BuddyPress users to their respective “Notifications” pages when they click the login button in the sidebar.

My solution was to write a plugin based on BP Redirect to Profile.

I merely edited line 35 of the plugin to change it from this:

return bp_core_get_user_domain($user->ID );

to this:

return bp_core_get_user_domain( $user->ID ) . 'settings/notifications/';