This will remove administrator from Members directory, Online members and other BuddyPress pages.


1. You need to note the Administrator ID from WP Admin -> Users section.


2. Add this code in Child theme -> functions.php or WPLMS Customiser -> wplms_customiser.php


 

function check_members($members){
 $members['exclude']='1';
 return $members;
}

add_filter( 'bp_after_has_members_parse_args', 'check_members' );

 

Change 1 in above code to Administrator ID.


For multiple members, same code can be added as :


 

function check_members($members){
 $members['exclude']='1,2,3';
 return $members;
}

add_filter( 'bp_after_has_members_parse_args', 'check_members' );

 

Where 1,2,3 are user ids to be exluded