Created
June 4, 2018 23:31
-
-
Save KaineLabs/88a12f33649d4b7d136f7dc7e7fb92ee to your computer and use it in GitHub Desktop.
Members Directory - Exclude Users.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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