bbp_edit_topic_pre_content

The WordPress Core bbp edit topic pre content hook.

Description

add_filter( 'bbp_edit_topic_pre_content', (string) $bbp_encode_bad, (int) $int ); 

Parameters (2)

0. $bbp_encode_bad (string) => 'bbp_encode_bad'
The bbp encode bad.
1. $int (int) => 10
The int.

Usage

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

Defined (7)

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

/includes/core/filters.php  
  1. add_filter( 'bbp_edit_topic_pre_content', 'bbp_encode_bad', 10 ); 
  1. add_filter( 'bbp_edit_topic_pre_content', 'bbp_code_trick', 20 ); 
  1. add_filter( 'bbp_edit_topic_pre_content', 'bbp_filter_kses', 30 ); 
  1. add_filter( 'bbp_edit_topic_pre_content', 'balanceTags', 40 ); 
/includes/topics/functions.php  
  1. remove_filter( 'bbp_edit_topic_pre_content', 'bbp_encode_bad', 10 ); 
  1. remove_filter( 'bbp_edit_topic_pre_content', 'bbp_filter_kses', 30 ); 
  1. $topic_content = apply_filters( 'bbp_edit_topic_pre_content', $topic_content, $topic_id );