Self submitting comment template

function self_submit_comment(){ return $_SERVER['HTTP_REFERER']; }//return whatever url you want, just incase you need to redirect to a thank you page

add_action('comment_post_redirect', 'self_submit_comment');

1 Comment

You must be logged in to post a comment.


  1. Sweat tweak.