Last active
August 29, 2015 14:16
-
-
Save gspice/ed36ecc798b318d1b614 to your computer and use it in GitHub Desktop.
Remove HTML tag info after comments and change label before comment block
This file contains 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
//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