Exclude User from Activity Stream in BuddyPress?

I’d like to exclude a specific user account from showing up in the activity stream.
I found this code that’s supposed to exclude the Admin. Any clue how to exclude a specific user? (this code goes in bp-custom.php)

<?php 
add_action("plugins_loaded","bpdev_init_sm_mode");
function bpdev_init_sm_mode(){
if(is_site_admin())
remove_action("wp_head","bp_core_record_activity");//id SM is on, remove the record activity hook
}
?>

Thank you.

Related posts

Leave a Reply

1 comment

  1. <?php
    add_action("plugins_loaded","bpdev_init_sm_mode");
    function bpdev_init_sm_mode(){
        global $current_user;
        if(is_user_logged_in()) {
            get_currentuserinfo();
            if("someusername" == $current_user->user_login) {
                remove_action("wp_head","bp_core_record_activity");//id SM is on, remove the record activity hook
            }
        }
    }
    ?>