Title: Remove some users
Last modified: August 31, 2016

---

# Remove some users

 *  Resolved [Zlato](https://wordpress.org/support/users/zlato/)
 * (@zlato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/)
 * Hi quan_flo
    How to remove specific users from trecking I use this code for remove
   from sidebar user id 1,4,40,84 but in your wigest they still there:
 *     ```
       dd_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' );
   
       function buddydev_exclude_users( $args ) {
       	//do not exclude in admin
       	if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
       		return $args;
       	}
   
       	$excluded = isset( $args['exclude'] )? $args['exclude'] : array();
   
       	if( !is_array( $excluded ) ) {
       		$excluded = explode(',', $excluded );
       	}
   
       	$user_ids = array( 1,4,40,84 ); //user ids
   
       	$excluded = array_merge( $excluded, $user_ids );
   
       	$args['exclude'] = $excluded;
   
       	return $args;
       }
       ```
   
 * THX MAN 😉
 * [https://wordpress.org/plugins/buddypress-who-clicked-at-my-profile/](https://wordpress.org/plugins/buddypress-who-clicked-at-my-profile/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [quan_flo](https://wordpress.org/support/users/quan_flo/)
 * (@quan_flo)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213534)
 * The action you use to filter is not used by the plugin.
 * See [https://plugins.trac.wordpress.org/changeset/1380129](https://plugins.trac.wordpress.org/changeset/1380129)
 * I added this as filter. 3.4 will have this included. see faq section for the 
   correct usage.
 * if you like the plugin feel free to rate or donate for it.
 * Thanks
    Florian
 *  Thread Starter [Zlato](https://wordpress.org/support/users/zlato/)
 * (@zlato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213556)
 * HI Thx now works just fine.
    iTRY TO TRNASLATE THE PLUGIN IS THIS CORECT : buddypress-
   wcamp-sl_Sl Is this ok tu put language file : /plugins/buddypress-who-clicked-
   at-my-profile/languages/buddypress-wcamp-sl_Sl
 * I use the budypress ver 2.5.1 do i need to put this code in function.php to send
   email to users :else return $action;
 * Thx
 *  Plugin Author [quan_flo](https://wordpress.org/support/users/quan_flo/)
 * (@quan_flo)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213558)
 * You can put your language file in the plugin’s language directory but better 
   way is to use wordpress’ global language directory.
 *  Thread Starter [Zlato](https://wordpress.org/support/users/zlato/)
 * (@zlato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213562)
 * Hi how but this :
    I use the budypress ver 2.5.1 do i need to put this code in
   function.php to send email to users :else return $action;
 * THX
 *  Plugin Author [quan_flo](https://wordpress.org/support/users/quan_flo/)
 * (@quan_flo)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213564)
 * I do not understand what you mean.. What do you want to send via E-Mail?
 *  Thread Starter [Zlato](https://wordpress.org/support/users/zlato/)
 * (@zlato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213566)
 * sorry this: “notify your members about other members that visited their profile
   via buddypress notification system” is this email notification ?
 * and shoud i need to put this line : “I use the budypress ver 2.5.1 do i need 
   to put this code in function.php to send email to users :else return $action;”
 *  Plugin Author [quan_flo](https://wordpress.org/support/users/quan_flo/)
 * (@quan_flo)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213581)
 * Not E-Mail, the Buddypress notification system is meant. The menu top right normally

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Remove some users’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-who-clicked-at-my-profile_cc9e79.
   svg)
 * [Buddypress Who clicked at my Profile?](https://wordpress.org/plugins/buddypress-who-clicked-at-my-profile/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-who-clicked-at-my-profile/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-who-clicked-at-my-profile/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-who-clicked-at-my-profile/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-who-clicked-at-my-profile/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-who-clicked-at-my-profile/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [quan_flo](https://wordpress.org/support/users/quan_flo/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/remove-some-users/#post-7213581)
 * Status: resolved