bp_activity_hide_user_activity

Hide a user's activity.

Description

bp_activity_hide_user_activity( (int) $user_id ); 

Parameters (1)

0. $user_id (int)
The ID of the user whose activity is being hidden.

Usage

  1. if ( !function_exists( 'bp_activity_hide_user_activity' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4. // The ID of the user whose activity is being hidden. 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_activity_hide_user_activity($user_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_hide_user_activity( $user_id ) { 
  2. return BP_Activity_Activity::hide_all_for_user( $user_id );