redirect to specific page wordpress code example
Example: 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"];
}