Skip to content

Instantly share code, notes, and snippets.

@wpspeak

wpspeak/functions.php

Last active Dec 23, 2015
Embed
What would you like to do?
Remove HTML allowed tags in WordPress
<?php
/*
* Remove HTML allowed tags in WordPress
* @Link http://wp.me/p33UjS-EC
*/
add_filter( 'comment_form_defaults', 'afn_custom_comment_form' );
function afn_custom_comment_form($fields) {
$fields['comment_notes_after'] = ''; //Removes Form Allowed Tags Box
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment