comment_post_redirect

comment_post_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.1.1

apply_filters('comment_post_redirect') is found 1 times:

  • /wp-comments-post.php line 78
     *
     * @param string     $location The 'redirect_to' URI sent via $_POST.
     * @param WP_Comment $comment  Comment object.
     */
    $location = apply_filters( 'comment_post_redirect', $location, $comment );
    
    wp_safe_redirect( $location );
    exit;
    
    
    
    

See this hook used in plugins: