Created
January 31, 2017 15:45
-
-
Save bigdigital/09a5d51e37c99e44e06b23181c97af7a to your computer and use it in GitHub Desktop.
Custom redirect after comment posted in wordpress
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
add_action('comment_post_redirect', 'redirect_after_comment'); | |
function redirect_after_comment() { | |
return 'http://example.com'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment