Remove allowed tags

The allowed HTML tags a user can utilize in a comment are listing just below the new reply textarea

allowed_tags

many users do not want them there, so let’s find out how to remove them.

You will need to edit your theme’s functions.php file and paste this

add_filter( 'comment_form_defaults', 'remove_comment_form_allowed_tags' );
function remove_comment_form_allowed_tags( $defaults ) {
$defaults['comment_notes_after'] = '';
return $defaults;
}

at the very bottom of the file, if the file ends in a PHP closing tag ?> you paste the code just above the tag, save and the allowed tags are gone.

Pssst. We are on Themeforest too! Check out our exclusive themes.

Use the coupon code SUMMERCLUB and get 30% off! - Buy Now!