bp_email_set_content_html

The WordPress Core bp email set content html hook.

Description

add_filter( 'bp_email_set_content_html', (string) $bp_activity_filter_kses, (int) $int ); 

Parameters (2)

0. $bp_activity_filter_kses (string) => 'bp_activity_filter_kses'
The bp activity filter kses.
1. $int (int) => 6
The int.

Usage

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

Defined (4)

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

/bp-activity-subscription-functions.php  
  1. add_filter( 'bp_email_set_content_html', 'bp_activity_filter_kses', 6 ); 
  1. remove_filter( 'bp_email_set_content_html', 'bp_activity_filter_kses', 6 ); 
  1. remove_filter( 'bp_email_set_content_html', 'wp_filter_post_kses', 6 ); 
  1. add_filter( 'bp_email_set_content_html', 'wp_filter_post_kses', 6 );