Disable comment redirection
-
Hello there,
I’m pretty new to wordpress so I’m messing around with the code a little.
What I’m currently trying to do at the moment is disabling the comment redirection.
For example: After I enter my comment in the comment form and pressing the ‘Submit’ button. It refreshes the page completely and then brings me to my comment.
I want to completely disable that.
At the moment the closest ive been to is putting this code in the functions.php
<?php add_filter('comment_post_redirect', 'redirect_after_comment'); function redirect_after_comment($location) { return $_SERVER["HTTP_REFERER"]; }
But it is still reloading the page which I do not want.
Can anyone help me out please :)?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disable comment redirection’ is closed to new replies.