Quick answer
- Redirecting a first-time commenter to a thank-you page is a simple way to welcome them and suggest a next step, like subscribing.
- Create a thank-you page with a short welcome, your best posts and an email signup form.
- WordPress has a built-in filter, comment_post_redirect, that lets you change where commenters go after posting. Add it with a code snippet plugin like WPCode.
- Only redirect first-time commenters, so regulars aren’t interrupted.
When someone comments for the first time, they’re engaged. A thank-you page is a friendly way to welcome them and keep them around.
Step 1: Create a thank-you page
- Thank them for commenting.
- Link to your most popular posts.
- Add an email signup form.
- Link to your social profiles.
Step 2: Add the redirect
WordPress provides the
comment_post_redirect filter, which controls where a visitor goes after submitting a comment. Using a code snippet plugin such as WPCode (WordPress.org, 3 million+ installs), you can return your thank-you page URL when the commenter has only one approved comment.Step 3: Test it
- Comment from a private browser window with a new name and email.
- Approve the comment if moderation is on.
- Check the redirect, then comment again to confirm regulars aren’t redirected.
Tips
- Keep the thank-you page short and friendly.
- Don’t hide the comment they just wrote. Link back to the post.
- Track signups from this page in Analytics.
FAQs
To welcome them and invite a next step, like subscribing.
The old Comment Hacks plugin is no longer on WordPress.org; a small code snippet with WPCode does the job.
Not if the snippet checks for first-time commenters only.
No.
A thank you, your best posts and an email signup form.
Yes. Deactivate the snippet.









