Remove allowed Comment Tags
The snippet below removes the “allowed tags” from the comments form:
add_filter( 'comment_form_defaults', 'wpkb_remove_comment_form_allowed_tags' );
function wpkb_remove_comment_form_allowed_tags( $defaults ) {
$defaults['comment_notes_after'] = '';
return $defaults;
}
Related Posts
- Configure allowed HTML Tags for Archive Views
- Remove Emoji Support
- Always Show the "Read More" Link When Using the Astra Theme
- Tutorial: Ubuntu 18.04 LAMP Setup for WordPress
- Remove All Items from a Wordpress Navigation Menu by Code
- Remove Tags and Categories (Post Meta) Using Genesis Framework
- Modify Recipients in WordPress Comment Notification / Moderation Mails