bp_more_visibility_activity_filter

The BuddyPress Activity Privacy bp more visibility activity filter hook.

Description

apply_filters( 'bp_more_visibility_activity_filter', (unknown) $remove_from_stream, (unknown) $visibility, (unknown) $activity ); 

Parameters (3)

0. $remove_from_stream (unknown)
The remove from stream.
1. $visibility (unknown)
The visibility.
2. $activity (unknown)
The activity.

Usage

To run the hook, copy the example below.
  1. $remove_from_stream = apply_filters( 'bp_more_visibility_activity_filter', $remove_from_stream, $visibility, $activity ); 
  2.  
  3. if ( !empty( $remove_from_stream ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_more_visibility_activity_filter callback 
  2. function filter_bp_more_visibility_activity_filter( $remove_from_stream, $visibility, $activity ) { 
  3. // make filter magic happen here... 
  4. return $remove_from_stream
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_more_visibility_activity_filter', 'filter_bp_more_visibility_activity_filter', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_more_visibility_activity_filter', 'filter_bp_more_visibility_activity_filter', 10, 3 ); 

Defined (1)

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

/includes/bp-activity-privacy-filters.php  
  1. $remove_from_stream = apply_filters( 'bp_more_visibility_activity_filter', $remove_from_stream, $visibility, $activity);