Created
July 5, 2022 07:56
-
-
Save tdmrhn/cc562352830b8c8b7afb70867e0178ca to your computer and use it in GitHub Desktop.
Change Comment Form Heading Tag
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
<?php | |
add_filter( 'comment_form_defaults', function ($defaults) { | |
// $defaults['title_reply'] = __( 'Add a Comment' ); | |
$defaults['title_reply_before'] = '<h4 id="reply-title" class="comment-reply-title">'; | |
$defaults['title_reply_after'] = '</h4>'; | |
return $defaults; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment