Aller au contenu
FR

WordPress Tags and HTML Attributes Function

Version audio de cet article

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;
}