bp_messages_filter_kses( string $content )

Custom kses filtering for message content.


Description Description


Parameters Parameters

$content

(Required) The message content.


Top ↑

Return Return

(string) The filtered message content.


Top ↑

Source Source

File: bp-messages/bp-messages-filters.php

function bp_messages_filter_kses( $content ) {
	$messages_allowedtags      = bp_get_allowedtags();
	$messages_allowedtags['p'] = array();

	/**
	 * Filters the allowed HTML tags for BuddyPress Messages content.
	 *
	 * @since 3.0.0
	 *
	 * @param array $value Array of allowed HTML tags and attributes.
	 */
	$messages_allowedtags = apply_filters( 'bp_messages_allowed_tags', $messages_allowedtags );
	return wp_kses( $content, $messages_allowedtags );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.