Lego2012
9/26/2016 - 10:12 PM

DWB Remove allowed HTML Tags

DWB Remove allowed HTML Tags

<?php
// Do NOT include the opening php tag

// Goes to Dynamik Custom - Functions
//* Remove comment form allowed tags

add_filter( 'comment_form_defaults', 'bg_remove_comment_form_allowed_tags' );
function bg_remove_comment_form_allowed_tags( $defaults ) {
$defaults['comment_notes_after'] = '';
return $defaults;
}
<?php
// Do NOT include the opening php tag

// Goes to Dynamik Custom - Functions

function remove_comment_form_allowed_tags() {
add_filter('comment_form_defaults','wordpress_comment_form_defaults');
}
add_action('after_setup_theme','remove_comment_form_allowed_tags');
/**
* @author Brad Dalton - WP Sites
* @learn more http://wp.me/p1lTu0-9Yd
*/
function wordpress_comment_form_defaults($default) {
unset($default['comment_notes_after']);
unset($default['comment_notes_before']);
return $default;
}