bp_bypass_check_for_blacklist

Filters whether or not to bypass checking for blocked keys.

Description

apply_filters( 'bp_bypass_check_for_blacklist', (bool) $false, (int) $user_id, (string) $title, (string) $content ); 

Parameters (4)

0. $false (bool) => false
Whether or not to bypass checking. Default false.
1. $user_id (int)
Topic of reply author ID.
2. $title (string)
The title of the content.
3. $content (string)
$the content being posted.

Usage

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

Defined (1)

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

/bp-core/bp-core-moderation.php  
  1. if ( apply_filters( 'bp_bypass_check_for_blacklist', false, $user_id, $title, $content ) ) {