# Change the Comment Form Title, Note and Button Text

> Replaces "Leave a Reply", the "Your email address will not be published" note and the "Post Comment" button with your own wording.

- Type: PHP
- Runs: Run everywhere
- Category: [Comments](https://wpide.com/library/category/comments/)
- Tags: comments, form, text
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/comment-form-texts/

## Code

```php
$wpide_comment_texts = array(
    'title_reply'          => 'Join the discussion',
    'title_reply_to'       => 'Reply to %s',
    'label_submit'         => 'Publish comment',
    'comment_notes_before' => '<p class="comment-notes">Your email stays private. Comments are moderated.</p>',
);

add_filter( 'comment_form_defaults', function ( $defaults ) use ( $wpide_comment_texts ) {
    return array_merge( $defaults, $wpide_comment_texts );
} );
```

## Notes

Leave out any key you want to keep as it is.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Change the Comment Form Title, Note and Button Text" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
