How to Disable HTML from Activity Updates on BuddyPress Wall?

By Default, BuddyPress allows HTML tags in the activity updates. However, if you want disable this feature, you can do that by adding a small amount of code to your functions.php file.

Quick Tip : Remove Members Tab From Groups in BuddyPress

To disable the HTML from activity updates use the following WordPress code snippet,

//Disable HTML from activity updates
function ccw_remove_activity_html( $content ) { 
	return strip_tags( $content ); 
add_filter( 'bp_get_activity_content_body', 'ccw_remove_activity_html', 1 ); 
add_filter( 'bp_get_activity_content', 'ccw_remove_activity_html', 1 ); 
add_filter( 'bp_activity_content_before_save', 'ccw_remove_activity_html', 1 );



Leave a Comment.