Created
December 4, 2014 13:04
-
-
Save nickcernis/400fc8a6a27daf07b7bc to your computer and use it in GitHub Desktop.
Add or edit the notes before the WordPress comments form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // remove this line | |
// Add or edit the notes before the comments form | |
add_filter( 'comment_form_defaults', 'sp_add_comment_form_before' ); | |
function sp_add_comment_form_before( $defaults ) { | |
$defaults['comment_notes_before'] = '<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p>'; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.