bbp_kses_data

Custom kses filter for forum topics and replies, for raw data.

Description

(string) bbp_kses_data( (string) $data = '' ); 

Returns (string)

Filtered content

Parameters (1)

0. $data — Optional. (string) => ''
Content to filter, expected to not be escaped

Usage

  1. if ( !function_exists( 'bbp_kses_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/formatting.php'; 
  3.  
  4. // Content to filter, expected to not be escaped 
  5. $data = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_kses_data($data); 
  9.  

Defined (1)

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

/includes/common/formatting.php  
  1. function bbp_kses_data( $data = '' ) { 
  2. return wp_kses( $data , bbp_kses_allowed_tags() );