Created
June 11, 2013 08:36
-
-
Save pascalmaddin/5755332 to your computer and use it in GitHub Desktop.
WordPress - Redirect commenter to thank you post or page
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_post_redirect', 'redirect_after_comment'); | |
function redirect_after_comment(){ | |
wp_redirect('/thank-you-page/'); | |
exit(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment