Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpspeak/8815496 to your computer and use it in GitHub Desktop.
Save wpspeak/8815496 to your computer and use it in GitHub Desktop.
Remove comment after and before notes
/<?php
//* Remove comment before and after notes
add_filter( 'comment_form_defaults', 'afn_custom_comment_form' );
function afn_custom_comment_form($fields) {
$fields['comment_notes_before'] = ''; // Removes comment before notes
$fields['comment_notes_after'] = ''; // Removes comment after notes
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment