Answers for "In wordpress, how to redirect after a comment back to the referring page?"

0

In wordpress, how to redirect after a comment back to the referring page?

add_filter('comment_post_redirect', 'redirect_after_comment');
function redirect_after_comment($location)
{
return $_SERVER["HTTP_REFERER"];
}
Posted by: Guest on November-09-2020

Code answers related to "In wordpress, how to redirect after a comment back to the referring page?"

Browse Popular Code Answers by Language