Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created June 4, 2018 23:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/88a12f33649d4b7d136f7dc7e7fb92ee to your computer and use it in GitHub Desktop.
Save KaineLabs/88a12f33649d4b7d136f7dc7e7fb92ee to your computer and use it in GitHub Desktop.
Members Directory - Exclude Users.
<?php
/**
* Members Directory - Exclude Users.
*/
function yzc_exclude_directory_users( $loop ) {
if ( bp_is_members_directory() ) {
$loop['exclude'] = '161,141';
}
return $loop;
}
add_filter( 'bp_after_has_members_parse_args', 'yzc_exclude_directory_users' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment