bp_messages_filter_kses( string $content )
Custom kses filtering for message content.
Description Description
Parameters Parameters
- $content
-
(Required) The message content.
Return Return
(string) The filtered message content.
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 ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |