Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,900
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
You can use the ‘bp_after_has_members_parse_args’ hook to filter for random users adding it to the bp-cuscom.php file.
function random_users( $args ) {
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
return $args;
}
$args['type'] = 'random';
return (array) $args;
}
add_filter( 'bp_after_has_members_parse_args', 'random_users', 10 );