Reply To: Strip all html tags forms
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
add_filter( 'bbp_new_topic_pre_content', 'rew_strip_tags' );
add_filter('bbp_edit_topic_pre_content', 'rew_strip_tags' );
add_filter( 'bbp_new_reply_pre_content', 'rew_strip_tags' );
add_filter('bbp_edit_reply_pre_content', 'rew_strip_tags' );
function rew_strip_tags ($content) {
$content = strip_tags($content);
return $content ;
}