Filter hook 'comment_post_redirect'

in WP Core File wp-comments-post.php at line 78

Description

Filters the location URI to send the commenter after posting.

Occurrences

Filename Line Number
wp-comments-post.php 78

Parameters

Type Name Description
string $location The 'redirect_to' URI sent via $_POST.
WP_Comment $comment Comment object.

PHP Doc

/**
 * Filters the location URI to send the commenter after posting.
 *
 * @since 2.0.5
 *
 * @param string     $location The 'redirect_to' URI sent via $_POST.
 * @param WP_Comment $comment  Comment object.
 */