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
142
143 /**
144  * The location URI to send commenter after posting.
145  *
146  * @since unknown
147  *
148  * @param string $location The 'redirect_to' URI sent via $_POST.
149  * @param object $comment  Comment object.
150  */
151 $location = apply_filters( 'comment_post_redirect', $location, $comment );
152
153 wp_safe_redirect( $location );
154 exit;
155