bbp_filter_kses( string $data = '' )

Custom kses filter for forum topics and replies, for filtering incoming data

Description

Parameters

$data

(string) (Optional) Content to filter, expected to be escaped with slashes

Default value: ''

Return

(string) Filtered content

Source

File: bp-forums/common/formatting.php

function bbp_filter_kses( $data = '' ) {
	return addslashes( wp_kses( stripslashes( $data ), bbp_kses_allowed_tags() ) );
}

Changelog

Changelog
Version Description
bbPress (r4603) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.