Remove “You may use these HTML tags and attributes”

Overview

You may confused from the note “You may use these HTML tags and attributes …” usually appears under the comments box,  for me, I remove soon when I install any new blog because it is just a duplicate content in all of your posts and pages and it has no benefits.

Fix and Solution

The solution for this issue is very easy, just go to the theme files and edit the file functions.php and add the following hook anywhere in the file.

add_filter(‘comment_form_defaults’ , ‘remove_html_tags_note’, 30);
function remove_html_tags_note( $defaults ) {
return array_replace( $defaults, array(‘comment_notes_after’ => ” ) );
}

Save the file and clear cache if you have a cache plugin installed and check it!

Leave a Reply