NB: Make sure you do a back up of your theme, files and database before attempting the tutorials
Easy
Last modified : Sep 10 2022
Estimated reading time : 0 minutes, 36 seconds - 49 words
Share the post "WordPress Tags and HTML Attributes Function"
If you have a WordPress website that displays this type of messages below your form’s comment section, we understand that it can be a bit annoying.
Here’s a function that will remove it. Simply add it in your functions.php file.
WordPress Tags and HTML Attributes Function
function enleve_html() {
add_filter('comment_form_defaults','enleve_default_html');
}
add_action('after_setup_theme','enleve_html');
function enleve_default_html($default) {
unset($default['comment_notes_after']);
return $default;
}