Redirect WordPress Commenters To A Thank You Page

If you have your own blog you will know important it is to have people comment on it. There are many things you can do to encourage people to comment on your blog.

You can have do follow links in your post so that the commenter will get a link back to there websites as a thank you for the comment. But why not actually say thank you to people who comment on your blog, this can be done by redirecting your commenter to a thank you page you make in WordPress.

Here is a WordPress snippet to add to your functions.php page which will redirect the commenter to a thank you page.

add_filter('comment_post_redirect', 'redirect_to_thank_you_page');
function redirect_to_thank_you_page(){
Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *