WordPress Functions.php add_filter after comment redirect

add_filter(‘comment_post_redirect‘, ‘redirect_after_comment‘);
function redirect_after_comment()
{
wp_redirect($_SERVER[‘HTTP_REFERER‘]);
}

Leave a Reply

You must be logged in to post a comment.