Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_post_redirect

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
70 /**
71  * Filters the location URI to send the commenter after posting.
72  *
73  * @since 2.0.5
74  *
75  * @param string     $location The 'redirect_to' URI sent via $_POST.
76  * @param WP_Comment $comment  Comment object.
77  */
78 $location = apply_filters( 'comment_post_redirect', $location, $comment );
80 wp_safe_redirect( $location );
81 exit;