Redirect first comment (Thanks for comment) with show Autor name and beginning of the comment
You should be able to do something like this: add_filter( ‘comment_post_redirect’, ‘custom_comments_redirect’, 10, 2 ); function custom_comments_redirect( $location, $comment ) { $comment_id = $comment->comment_ID; $custom_url=”https://example.com/thank-you/?comment=” . $comment_id; return $custom_url; } And on the “Thank you” page, you can get the comment info like this: // Make sure you sanitize the GET input $comment_id = (int) … Read more