How to Hide Admin Users in the Members Directory?

Hide admin users in the Directory

If you would like to hide your administrators from the member directory, here is a simple code snippet that will do the job:

Heads up! Don’t know how to add a PHP code snippet to your site ?
If you want to find out how to add a PHP code snippet to your site, you can visit this other article of our documentation: Adding Custom PHP Without Changing Your Child Theme.

Hide admin users in the widgets

If you wish to also hide admin users from the native BP widgets, please also read the following topic:

If you have further questions with BuddyPress, it’s best if you try to reach the plugin authors. They will be more informed and better suited to help you.
To go further, we invite you to post your request on their support forums:

Not Finding
What You Are Looking For?

Simply go to our support forums and describe the problem you are facing.
We will be happy to help you!