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://www.ads-software.com/plugins/buddypress-who-clicked-at-my-profile/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Remove some users’ is closed to new replies.