Hide rtMedia from profile for not logged in users


#1

I use this snippet for hiding tabs in profile for users, that are not logged in:

function bpfr_hide_tabs() {
global $bp;
	 /**
	 * class_exists() & bp_is_active are recommanded to avoid problems during updates 
	 * or when Component is deactivated
	 */

	if( class_exists( 'bbPress' ) || bp_is_active ( 'groups' ) ) :
        
        /** here we fix the conditions. 
        * Are we on a profile page ? | is user site admin ? | is user logged in ?
        */
	if ( bp_is_user() && !is_super_admin() && !is_user_logged_in() ) {

        /* and here we remove our stuff ! */
		bp_core_remove_nav_item( 'activity' );
		bp_core_remove_nav_item( 'friends' );
		bp_core_remove_nav_item( 'groups' );
		bp_core_remove_nav_item( 'posts' );
		bp_core_remove_nav_item( 'forums' );
		bp_core_remove_nav_item( 'media' );
	}
	endif;
}
add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

How can I add rtMedia Tab to this? Which “slug” is used?