Reply To: Buddypress and S2 member Activity problem
I tried to add this code to bp-custom.php but it seems that doesn’t work, does anyone maybe have new code?
Code is used to exclude one user activity from buddypress activity stream.
<?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(“username” == $current_user->user_login) {
remove_action(“wp_head”,”bp_core_record_activity”);//id SM is on, remove the record activity hook
}
}
}
?>