Skip to content

Instantly share code, notes, and snippets.

@gspice
Last active August 29, 2015 14:16
Show Gist options
  • Save gspice/ed36ecc798b318d1b614 to your computer and use it in GitHub Desktop.
Save gspice/ed36ecc798b318d1b614 to your computer and use it in GitHub Desktop.
Remove HTML tag info after comments and change label before comment block
//change the comments header
function wap_comment_form_defaults( $defaults ) {
$defaults['title_reply'] = __( 'Join the Conversation' );
return $defaults;
}
add_filter( 'comment_form_defaults', 'wap_comment_form_defaults' );
//Remove comment form HTML tags and attributes
function wap_remove_comment_form_allowed_tags( $defaults ) {
$defaults['comment_notes_after'] = '';
return $defaults;
}
add_filter( 'comment_form_defaults', 'wap_remove_comment_form_allowed_tags' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment