Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,903
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
I think this is because every new activity item is going through the wp_kses filter and if those elements are not in the allowed list they will be stripped. There’s a filter yu can use to allow these extra elements. I’ve an example below showing how to allow paragraph tags:
function venutius_activity_allowed_tags( $allowed_tags ) {
return array_merge_recursive( $allowed_tags, array(
'p' => array(),
) );
}
add_filter( ‘bp_activity_allowed_tags’, ‘venutius_activity_allowed_tags’ );’