bp_activity_filter_kses( string $content )
Custom kses filtering for activity content.
Description
Parameters
- $content
-
(Required) The activity content.
Return
(string) $content Filtered activity content.
Source
File: bp-activity/bp-activity-filters.php
function bp_activity_filter_kses( $content ) { /** * Filters the allowed HTML tags for BuddyBoss Activity content. * * @since BuddyPress 1.2.0 * * @param array $value Array of allowed HTML tags and attributes. */ $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', bp_get_allowedtags() ); return wp_kses( $content, $activity_allowedtags ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.0 | 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.